diff options
author | 2010-05-10 19:00:59 +0200 | |
---|---|---|
committer | 2010-05-10 19:00:59 +0200 | |
commit | 6d6dcce312f95c3b8ad4447adf37211e270dac6c (patch) | |
tree | 197ae8b09c0c91d3db1bb39ba01a844a70e81918 /plugins/gtkui/search.c | |
parent | e47925885efa478c6f4a1f1721324d16dfd63d09 (diff) |
removed search window size limit; reduced default size
Diffstat (limited to 'plugins/gtkui/search.c')
-rw-r--r-- | plugins/gtkui/search.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/gtkui/search.c b/plugins/gtkui/search.c index 09680f24..89d0c7db 100644 --- a/plugins/gtkui/search.c +++ b/plugins/gtkui/search.c @@ -49,8 +49,8 @@ void search_restore_attrs (void) { int x = deadbeef->conf_get_int ("searchwin.geometry.x", -1); int y = deadbeef->conf_get_int ("searchwin.geometry.y", -1); - int w = deadbeef->conf_get_int ("searchwin.geometry.w", 500); - int h = deadbeef->conf_get_int ("searchwin.geometry.h", 300); + int w = deadbeef->conf_get_int ("searchwin.geometry.w", 450); + int h = deadbeef->conf_get_int ("searchwin.geometry.h", 150); gtk_widget_show (searchwin); if (x != -1 && y != -1) { gtk_window_move (GTK_WINDOW (searchwin), x, y); @@ -60,6 +60,9 @@ search_restore_attrs (void) { } gtk_window_present (GTK_WINDOW (searchwin)); } + else { + gtk_window_resize (GTK_WINDOW (searchwin), w, h); + } } void |