Skip to content

Commit

Permalink
in darkroom don't allow dragging libs to right or iops to left
Browse files Browse the repository at this point in the history
  • Loading branch information
dterrahe authored and TurboGit committed Sep 11, 2024
1 parent 059e2a3 commit 9b0e9e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/gui/gtk.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion src/libs/lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b0e9e7

Please sign in to comment.