Mercurial > pidgin.yaz
changeset 16122:bd4a21db0ec9
The GdkWindow doesn't exist until after the window is realized, so the decorations can't be manipulated until after that. I bet this will work in a bunch of WMs now.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Sun, 15 Apr 2007 01:26:57 +0000 |
parents | 6167ee79ecd0 |
children | bc280c341679 8bb00667532f d3e197b67ef9 2f123c4b36a2 |
files | pidgin/gtkblist.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkblist.c Sun Apr 15 00:32:57 2007 +0000 +++ b/pidgin/gtkblist.c Sun Apr 15 01:26:57 2007 +0000 @@ -4179,8 +4179,6 @@ gtkblist->window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_role(GTK_WINDOW(gtkblist->window), "buddy_list"); gtk_window_set_title(GTK_WINDOW(gtkblist->window), _("Buddy List")); - gdk_window_set_decorations(gtkblist->window->window, - GDK_DECOR_ALL | GDK_DECOR_MAXIMIZE); g_signal_connect(G_OBJECT(gtkblist->window), "focus-in-event", G_CALLBACK(blist_focus_cb), gtkblist); GTK_WINDOW(gtkblist->window)->allow_shrink = TRUE; @@ -4502,6 +4500,8 @@ pidgin_blist_restore_position(); gtk_widget_show_all(GTK_WIDGET(gtkblist->vbox)); gtk_widget_realize(GTK_WIDGET(gtkblist->window)); + gdk_window_set_decorations(GDK_WINDOW(gtkblist->window->window), + GDK_DECOR_ALL | GDK_DECOR_MAXIMIZE); purple_blist_set_visible(purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/blist/list_visible")); /* start the refresh timer */