Mercurial > geeqie
diff src/fullscreen.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 | b16b9b8979e5 |
line wrap: on
line diff
--- a/src/fullscreen.c Wed Apr 09 13:53:01 2008 +0000 +++ b/src/fullscreen.c Wed Apr 09 16:37:54 2008 +0000 @@ -238,8 +238,7 @@ fullscreen_prefs_get_geometry(fullscreen_screen, window, &x, &y, &w, &h, &screen, &same); - fs->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gtk_window_set_wmclass(GTK_WINDOW(fs->window), "fullscreen", GQ_WMCLASS); + fs->window = window_new(GTK_WINDOW_TOPLEVEL, "fullscreen", NULL, NULL, _("Full screen")); /* this requests no decorations, if you still have them complain to the window manager author(s) */ gtk_window_set_decorated(GTK_WINDOW(fs->window), FALSE); @@ -264,12 +263,6 @@ g_signal_connect(G_OBJECT(fs->window), "delete_event", G_CALLBACK(fullscreen_delete_cb), fs); - { - gchar *title = g_strdup_printf("%s - %s", _("Full screen"), GQ_APPNAME); - gtk_window_set_title(GTK_WINDOW(fs->window), title); - g_free(title); - } - geometry.min_width = w; geometry.min_height = h; geometry.max_width = w;