Mercurial > geeqie.yaz
diff src/dupe.c @ 289:6a7298988a7a
Simplify and unify gtk_window creation with the help of
the new window_new() function, that wraps gtk_window_new()
call.
Subclass, title and icon are set in the same call.
author | zas_ |
---|---|
date | Wed, 09 Apr 2008 16:37:54 +0000 |
parents | d1f74154463e |
children | 2ebd0d9145cf |
line wrap: on
line diff
--- a/src/dupe.c Wed Apr 09 13:53:01 2008 +0000 +++ b/src/dupe.c Wed Apr 09 16:37:54 2008 +0000 @@ -3103,9 +3103,8 @@ dw->second_set = FALSE; - dw->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - window_set_icon(dw->window, NULL, NULL); - + dw->window = window_new(GTK_WINDOW_TOPLEVEL, "dupe", NULL, NULL, _("Find duplicates")); + geometry.min_width = 32; geometry.min_height = 32; geometry.base_width = DUPE_DEF_WIDTH; @@ -3116,12 +3115,6 @@ gtk_window_set_default_size(GTK_WINDOW(dw->window), DUPE_DEF_WIDTH, DUPE_DEF_HEIGHT); gtk_window_set_resizable(GTK_WINDOW(dw->window), TRUE); - { - gchar *title = g_strdup_printf("%s - %s", _("Find duplicates"), GQ_APPNAME); - gtk_window_set_title(GTK_WINDOW(dw->window), title); - g_free(title); - } - gtk_window_set_wmclass(GTK_WINDOW(dw->window), "dupe", GQ_WMCLASS); gtk_container_set_border_width (GTK_CONTAINER (dw->window), 0); g_signal_connect(G_OBJECT(dw->window), "delete_event",