Mercurial > hg > forks > geeqie
comparison src/collect.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 | 8b1c451c8ff2 |
children |
comparison
equal
deleted
inserted
replaced
2908:ea58314bd19d | 2909:2e7fd08bfbe4 |
---|---|
1314 collection_window_list = g_list_append(collection_window_list, cw); | 1314 collection_window_list = g_list_append(collection_window_list, cw); |
1315 | 1315 |
1316 cw->cd = collection_new(path); | 1316 cw->cd = collection_new(path); |
1317 | 1317 |
1318 cw->window = window_new(GTK_WINDOW_TOPLEVEL, "collection", PIXBUF_INLINE_ICON_BOOK, NULL, NULL); | 1318 cw->window = window_new(GTK_WINDOW_TOPLEVEL, "collection", PIXBUF_INLINE_ICON_BOOK, NULL, NULL); |
1319 DEBUG_NAME(cw->window); | |
1319 | 1320 |
1320 geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE; | 1321 geometry.min_width = DEFAULT_MINIMAL_WINDOW_SIZE; |
1321 geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE; | 1322 geometry.min_height = DEFAULT_MINIMAL_WINDOW_SIZE; |
1322 geometry.base_width = COLLECT_DEF_WIDTH; | 1323 geometry.base_width = COLLECT_DEF_WIDTH; |
1323 geometry.base_height = COLLECT_DEF_HEIGHT; | 1324 geometry.base_height = COLLECT_DEF_HEIGHT; |
1360 cw->status_box = gtk_hbox_new(TRUE, 0); | 1361 cw->status_box = gtk_hbox_new(TRUE, 0); |
1361 gtk_box_pack_start(GTK_BOX(vbox), cw->status_box, FALSE, FALSE, 0); | 1362 gtk_box_pack_start(GTK_BOX(vbox), cw->status_box, FALSE, FALSE, 0); |
1362 gtk_widget_show(cw->status_box); | 1363 gtk_widget_show(cw->status_box); |
1363 | 1364 |
1364 frame = gtk_frame_new(NULL); | 1365 frame = gtk_frame_new(NULL); |
1366 DEBUG_NAME(frame); | |
1365 gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); | 1367 gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); |
1366 gtk_box_pack_start(GTK_BOX(cw->status_box), frame, TRUE, TRUE, 0); | 1368 gtk_box_pack_start(GTK_BOX(cw->status_box), frame, TRUE, TRUE, 0); |
1367 gtk_widget_show(frame); | 1369 gtk_widget_show(frame); |
1368 | 1370 |
1369 status_label = gtk_label_new(""); | 1371 status_label = gtk_label_new(""); |