From 9b0e9e7aa5bd5f1601adaddcf2cbd0c24919b8eb Mon Sep 17 00:00:00 2001 From: Diederik ter Rahe Date: Tue, 10 Sep 2024 16:52:43 -0400 Subject: [PATCH] in darkroom don't allow dragging libs to right or iops to left --- src/gui/gtk.c | 2 ++ src/libs/lib.c | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/gtk.c b/src/gui/gtk.c index 52cf072aa13b..ee9eca17a5db 100644 --- a/src/gui/gtk.c +++ b/src/gui/gtk.c @@ -2222,6 +2222,8 @@ static gboolean _on_drag_motion_drop(GtkWidget *widget, GdkDragContext *dc, gint if(gtk_widget_get_visible(GTK_WIDGET(m->data))) last = m->data; if(last) g_signal_emit_by_name(last, "drag-motion", dc, drop ? -1 : x, y, time, &ret); + else if(dt_view_get_current() == DT_VIEW_DARKROOM) + gdk_drag_status(dc, 0, time); // don't allow dropping in empty panel on other side else if(drop) { // drop in empty panel; dragged expander handles its own move; pass destination panel in dc diff --git a/src/libs/lib.c b/src/libs/lib.c index c4f417aee9e8..2e0e8bc13dca 100644 --- a/src/libs/lib.c +++ b/src/libs/lib.c @@ -1320,7 +1320,8 @@ GtkWidget *dt_lib_gui_get_expander(dt_lib_module_t *module) void dt_lib_gui_set_label(dt_lib_module_t *module, const char *label) { - gtk_label_set_text(GTK_LABEL(module->label), label); + if(module->expander) + gtk_label_set_text(GTK_LABEL(module->label), label); } static void _preferences_changed(gpointer instance, gpointer self)