[gnome-control-center] notifications: Use header bar in the edit dialog
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] notifications: Use header bar in the edit dialog
- Date: Mon, 28 Apr 2014 14:37:10 +0000 (UTC)
commit 20d59c628c29107f214eba56e0e86d06fc0c61e8
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Mon Mar 24 09:16:51 2014 +0200
notifications: Use header bar in the edit dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
panels/notifications/cc-edit-dialog.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
---
diff --git a/panels/notifications/cc-edit-dialog.c b/panels/notifications/cc-edit-dialog.c
index 5a04b76..e415524 100644
--- a/panels/notifications/cc-edit-dialog.c
+++ b/panels/notifications/cc-edit-dialog.c
@@ -57,21 +57,20 @@ cc_build_edit_dialog (CcNotificationsPanel *panel,
shell = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (panel)));
- win = GTK_DIALOG (gtk_dialog_new ());
- g_object_set (win,
- "modal", TRUE,
- "title", g_app_info_get_name (app),
- "width-request", 450,
- "transient-for", shell,
- "resizable", FALSE,
- NULL);
- gtk_dialog_add_button (win, "gtk-close", GTK_RESPONSE_CLOSE);
- gtk_dialog_set_default_response (win, GTK_RESPONSE_CLOSE);
+ win = g_object_new (GTK_TYPE_DIALOG,
+ "modal", TRUE,
+ "title", g_app_info_get_name (app),
+ "width-request", 450,
+ "transient-for", shell,
+ "resizable", FALSE,
+ "use-header-bar", TRUE,
+ NULL);
content_area = gtk_dialog_get_content_area (win);
content_grid = GTK_GRID (gtk_grid_new ());
g_object_set (content_grid,
"row-spacing", 10,
+ "margin-top", 12,
"margin-start", 15,
"margin-end", 5,
NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]