[gnome-control-center] mouse: Use header bar in the test settings dialog
- From: Yosef Or Boczko <yoseforb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] mouse: Use header bar in the test settings dialog
- Date: Mon, 28 Apr 2014 14:36:50 +0000 (UTC)
commit 2ca3540019ab2f0132ccc5fa29d5ad918acca42e
Author: Yosef Or Boczko <yoseforb src gnome org>
Date: Sun Feb 16 05:53:50 2014 +0200
mouse: Use header bar in the test settings dialog
https://bugzilla.gnome.org/show_bug.cgi?id=724299
panels/mouse/cc-mouse-panel.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/panels/mouse/cc-mouse-panel.c b/panels/mouse/cc-mouse-panel.c
index 20a8be1..9aa3107 100644
--- a/panels/mouse/cc-mouse-panel.c
+++ b/panels/mouse/cc-mouse-panel.c
@@ -104,11 +104,12 @@ cc_mouse_panel_constructed (GObject *object)
self);
toplevel = cc_shell_get_toplevel (shell);
- priv->test_dialog = gtk_dialog_new_with_buttons (_("Test Your Settings"),
- GTK_WINDOW (toplevel),
- GTK_DIALOG_MODAL,
- _("_Done"), GTK_RESPONSE_ACCEPT, NULL);
- gtk_window_set_resizable (GTK_WINDOW (priv->test_dialog), FALSE);
+ priv->test_dialog = g_object_new (GTK_TYPE_DIALOG, "title", _("Test Your Settings"),
+ "transient-for", GTK_WINDOW (toplevel),
+ "modal", TRUE,
+ "use_header-bar", TRUE,
+ "resizable", FALSE,
+ NULL);
container = gtk_dialog_get_content_area (GTK_DIALOG (priv->test_dialog));
gtk_container_add (GTK_CONTAINER (container), priv->test_widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]