diff options
author | David Barth <david.barth@canonical.com> | 2009-09-25 10:44:11 +0200 |
---|---|---|
committer | David Barth <david.barth@canonical.com> | 2009-09-25 10:44:11 +0200 |
commit | dca1f97b93a41d96ae1a41753f68bd32ceadf8e6 (patch) | |
tree | 23373fb7e36561a5a6a037b461e1c202381aea82 /src/gtk-dialog/logout-dialog.c | |
parent | 50004fc1522354a4bc6227333a4fe19deba77f45 (diff) | |
download | ayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.tar.gz ayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.tar.bz2 ayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.zip |
remove superfluous window buttons
Diffstat (limited to 'src/gtk-dialog/logout-dialog.c')
-rw-r--r-- | src/gtk-dialog/logout-dialog.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gtk-dialog/logout-dialog.c b/src/gtk-dialog/logout-dialog.c index a94c649..c53590e 100644 --- a/src/gtk-dialog/logout-dialog.c +++ b/src/gtk-dialog/logout-dialog.c @@ -275,7 +275,9 @@ logout_dialog_init (LogoutDialog *logout_dialog) gtk_window_stick(GTK_WINDOW(logout_dialog)); gtk_window_set_keep_above(GTK_WINDOW(logout_dialog), TRUE); gtk_widget_realize(GTK_WIDGET(logout_dialog)); - gdk_window_set_functions(GTK_WIDGET(logout_dialog)->window, GDK_FUNC_CLOSE); + /* remove superfluous window buttons */ + gdk_window_set_functions (GTK_WIDGET(logout_dialog)->window, 0); + gdk_window_set_decorations (GTK_WIDGET(logout_dialog)->window, GDK_DECOR_BORDER | GDK_DECOR_TITLE); /* center window */ gtk_window_set_position (GTK_WINDOW(logout_dialog), GTK_WIN_POS_CENTER); |