diff options
author | David Barth <david.barth@canonical.com> | 2009-09-25 08:51:05 -0500 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-09-25 08:51:05 -0500 |
commit | 8a31e1b09d93ea7468db7769e748f47995ea8a66 (patch) | |
tree | 23373fb7e36561a5a6a037b461e1c202381aea82 | |
parent | 50004fc1522354a4bc6227333a4fe19deba77f45 (diff) | |
parent | dca1f97b93a41d96ae1a41753f68bd32ceadf8e6 (diff) | |
download | ayatana-indicator-session-8a31e1b09d93ea7468db7769e748f47995ea8a66.tar.gz ayatana-indicator-session-8a31e1b09d93ea7468db7769e748f47995ea8a66.tar.bz2 ayatana-indicator-session-8a31e1b09d93ea7468db7769e748f47995ea8a66.zip |
Merging in a branch to remove the close button on the logout confirmation dialogs.
-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); |