diff src/search.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/search.c	Wed Apr 09 13:53:01 2008 +0000
+++ b/src/search.c	Wed Apr 09 16:37:54 2008 +0000
@@ -2552,16 +2552,9 @@
 	sd->search_idle_id = -1;
 	sd->update_idle_id = -1;
 
-	sd->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
-	window_set_icon(sd->window, NULL, NULL);
+	sd->window = window_new(GTK_WINDOW_TOPLEVEL, "search", NULL, NULL, _("Image search"));
 
 	gtk_window_set_resizable(GTK_WINDOW(sd->window), TRUE);
-	{
-	gchar *title = g_strdup_printf("%s - %s", _("Image search"), GQ_APPNAME);
-	gtk_window_set_title(GTK_WINDOW(sd->window), title);
-	g_free(title);
-	}
-	gtk_window_set_wmclass(GTK_WINDOW(sd->window), "search", GQ_WMCLASS);
 
 	geometry.min_width = 32;
 	geometry.min_height = 32;