Mercurial > hg > forks > geeqie
diff src/layout_util.c @ 2909:2e7fd08bfbe4
DEBUG_NAME() function for use with GTKInspector
This debug function can be used with GTKInspector to provide a visual
indication of where a widget is declared.
This is a documentation facility to aid developers new to the project.
Sample call:
GTK_DEBUG=interactive src/geeqie
author | Colin Clark <colin.clark@cclark.uk> |
---|---|
date | Thu, 14 Feb 2019 12:05:04 +0000 |
parents | 4b92a65f8367 |
children |
line wrap: on
line diff
--- a/src/layout_util.c Wed Feb 13 11:47:38 2019 +0000 +++ b/src/layout_util.c Thu Feb 14 12:05:04 2019 +0000 @@ -2779,7 +2779,9 @@ if (lw->menu_tool_bar) return lw->menu_tool_bar; menu_bar = layout_actions_menu_bar(lw); + DEBUG_NAME(menu_bar); toolbar = layout_actions_toolbar(lw, TOOLBAR_MAIN); + DEBUG_NAME(toolbar); lw->menu_tool_bar = gtk_vbox_new(FALSE, 0); gtk_box_pack_start(GTK_BOX(lw->menu_tool_bar), menu_bar, FALSE, FALSE, 0); @@ -3267,6 +3269,7 @@ if (!lw->utility_box) return; bar = bar_new(lw); + DEBUG_NAME(bar); layout_bar_set(lw, bar); @@ -3472,6 +3475,7 @@ if (lw->utility_box) return lw->utility_box; lw->utility_box = gtk_hbox_new(FALSE, PREF_PAD_GAP); lw->utility_paned = gtk_hpaned_new(); + DEBUG_NAME(lw->utility_paned); gtk_box_pack_start(GTK_BOX(lw->utility_box), lw->utility_paned, TRUE, TRUE, 0); gtk_paned_pack1(GTK_PANED(lw->utility_paned), image, TRUE, FALSE);