aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Barth <david.barth@canonical.com>2009-09-25 10:44:11 +0200
committerDavid Barth <david.barth@canonical.com>2009-09-25 10:44:11 +0200
commitdca1f97b93a41d96ae1a41753f68bd32ceadf8e6 (patch)
tree23373fb7e36561a5a6a037b461e1c202381aea82
parent50004fc1522354a4bc6227333a4fe19deba77f45 (diff)
downloadayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.tar.gz
ayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.tar.bz2
ayatana-indicator-session-dca1f97b93a41d96ae1a41753f68bd32ceadf8e6.zip
remove superfluous window buttons
-rw-r--r--src/gtk-dialog/logout-dialog.c4
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);