diff src/ui_utildlg.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 3040da7c5c35
children
line wrap: on
line diff
--- a/src/ui_utildlg.c	Wed Feb 13 11:47:38 2019 +0000
+++ b/src/ui_utildlg.c	Thu Feb 14 12:05:04 2019 +0000
@@ -402,6 +402,7 @@
 	gd->cancel_cb = cancel_cb;
 
 	gd->dialog = window_new(GTK_WINDOW_TOPLEVEL, role, NULL, NULL, title);
+	DEBUG_NAME(gd->dialog);
 	gtk_window_set_type_hint(GTK_WINDOW(gd->dialog), GDK_WINDOW_TYPE_HINT_DIALOG);
 
 	if (options->save_dialog_window_positions)