Mercurial > geeqie.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
288:d1f74154463e | 289:6a7298988a7a |
---|---|
2550 sd->search_similarity_cd = NULL; | 2550 sd->search_similarity_cd = NULL; |
2551 | 2551 |
2552 sd->search_idle_id = -1; | 2552 sd->search_idle_id = -1; |
2553 sd->update_idle_id = -1; | 2553 sd->update_idle_id = -1; |
2554 | 2554 |
2555 sd->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); | 2555 sd->window = window_new(GTK_WINDOW_TOPLEVEL, "search", NULL, NULL, _("Image search")); |
2556 window_set_icon(sd->window, NULL, NULL); | |
2557 | 2556 |
2558 gtk_window_set_resizable(GTK_WINDOW(sd->window), TRUE); | 2557 gtk_window_set_resizable(GTK_WINDOW(sd->window), TRUE); |
2559 { | |
2560 gchar *title = g_strdup_printf("%s - %s", _("Image search"), GQ_APPNAME); | |
2561 gtk_window_set_title(GTK_WINDOW(sd->window), title); | |
2562 g_free(title); | |
2563 } | |
2564 gtk_window_set_wmclass(GTK_WINDOW(sd->window), "search", GQ_WMCLASS); | |
2565 | 2558 |
2566 geometry.min_width = 32; | 2559 geometry.min_width = 32; |
2567 geometry.min_height = 32; | 2560 geometry.min_height = 32; |
2568 geometry.base_width = DEF_SEARCH_WIDTH; | 2561 geometry.base_width = DEF_SEARCH_WIDTH; |
2569 geometry.base_height = DEF_SEARCH_HEIGHT; | 2562 geometry.base_height = DEF_SEARCH_HEIGHT; |