[gnome-system-monitor] Use headerbar in memory maps dialog



commit 7b79e70d7767766c867c07c1370d234bd8e8f4e2
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Apr 15 12:29:35 2014 +0300

    Use headerbar in memory maps dialog

 src/memmaps.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/memmaps.cpp b/src/memmaps.cpp
index 14a51d1..2a7434f 100644
--- a/src/memmaps.cpp
+++ b/src/memmaps.cpp
@@ -432,11 +432,12 @@ create_single_memmaps_dialog (GtkTreeModel *model, GtkTreePath *path,
 
     mmdata = create_memmapsdata (app);
     mmdata->info = info;
+    
+    memmapsdialog = GTK_WIDGET (g_object_new (GTK_TYPE_DIALOG, 
+                                              "title", _("Memory Maps"), 
+                                              "use-header-bar", TRUE, 
+                                              "destroy-with-parent", TRUE, NULL));
 
-    memmapsdialog = gtk_dialog_new_with_buttons (_("Memory Maps"), GTK_WINDOW (app->main_window),
-                                                 GTK_DIALOG_DESTROY_WITH_PARENT,
-                                                 _("_Close"), GTK_RESPONSE_CLOSE,
-                                                 NULL);
     gtk_window_set_resizable(GTK_WINDOW(memmapsdialog), TRUE);
     gtk_window_set_default_size(GTK_WINDOW(memmapsdialog), 620, 400);
     gtk_container_set_border_width(GTK_CONTAINER(memmapsdialog), 5);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]