notifications: Use header bar in the edit dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
This commit is contained in:
parent
00b03c5f4e
commit
20d59c628c
1 changed files with 9 additions and 10 deletions
|
@ -57,21 +57,20 @@ cc_build_edit_dialog (CcNotificationsPanel *panel,
|
||||||
|
|
||||||
shell = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (panel)));
|
shell = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (panel)));
|
||||||
|
|
||||||
win = GTK_DIALOG (gtk_dialog_new ());
|
win = g_object_new (GTK_TYPE_DIALOG,
|
||||||
g_object_set (win,
|
"modal", TRUE,
|
||||||
"modal", TRUE,
|
"title", g_app_info_get_name (app),
|
||||||
"title", g_app_info_get_name (app),
|
"width-request", 450,
|
||||||
"width-request", 450,
|
"transient-for", shell,
|
||||||
"transient-for", shell,
|
"resizable", FALSE,
|
||||||
"resizable", FALSE,
|
"use-header-bar", TRUE,
|
||||||
NULL);
|
NULL);
|
||||||
gtk_dialog_add_button (win, "gtk-close", GTK_RESPONSE_CLOSE);
|
|
||||||
gtk_dialog_set_default_response (win, GTK_RESPONSE_CLOSE);
|
|
||||||
|
|
||||||
content_area = gtk_dialog_get_content_area (win);
|
content_area = gtk_dialog_get_content_area (win);
|
||||||
content_grid = GTK_GRID (gtk_grid_new ());
|
content_grid = GTK_GRID (gtk_grid_new ());
|
||||||
g_object_set (content_grid,
|
g_object_set (content_grid,
|
||||||
"row-spacing", 10,
|
"row-spacing", 10,
|
||||||
|
"margin-top", 12,
|
||||||
"margin-start", 15,
|
"margin-start", 15,
|
||||||
"margin-end", 5,
|
"margin-end", 5,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
Loading…
Add table
Reference in a new issue