Mercurial > geeqie
diff src/info.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 | 4b2d7f9af171 |
line wrap: on
line diff
--- a/src/info.c Wed Apr 09 13:53:01 2008 +0000 +++ b/src/info.c Wed Apr 09 16:37:54 2008 +0000 @@ -775,17 +775,10 @@ id->fd = (FileData *)id->list->data; id->updated = FALSE; - id->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); + id->window = window_new(GTK_WINDOW_TOPLEVEL, "properties", NULL, NULL, _("Image properties")); gtk_window_set_type_hint(GTK_WINDOW(id->window), GDK_WINDOW_TYPE_HINT_DIALOG); - window_set_icon(id->window, NULL, NULL); gtk_window_set_resizable(GTK_WINDOW(id->window), TRUE); - { - gchar *title = g_strdup_printf("%s - %s", _("Image properties"), GQ_APPNAME); - gtk_window_set_title(GTK_WINDOW(id->window), title); - g_free(title); - } - gtk_window_set_wmclass(GTK_WINDOW(id->window), "properties", GQ_WMCLASS); geometry.min_width = 32; geometry.min_height = 32;