aboutsummaryrefslogtreecommitdiffstats
path: root/main/gnome-system-monitor/004-replace-dialog-set.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-04-25 16:32:07 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2012-04-25 19:52:57 +0000
commit2749b73eab8f40766ed08ed06771943107704f94 (patch)
tree1edf576255ee5b7fddad4cb5f82dac4b68eb73a9 /main/gnome-system-monitor/004-replace-dialog-set.patch
parentd98256295edd37208538ecd0241d17eedf5fbeb0 (diff)
downloadaports-2749b73eab8f40766ed08ed06771943107704f94.tar.bz2
aports-2749b73eab8f40766ed08ed06771943107704f94.tar.xz
main/gnome-system-monitor: rebuild against glib-2.32
Diffstat (limited to 'main/gnome-system-monitor/004-replace-dialog-set.patch')
-rw-r--r--main/gnome-system-monitor/004-replace-dialog-set.patch67
1 files changed, 67 insertions, 0 deletions
diff --git a/main/gnome-system-monitor/004-replace-dialog-set.patch b/main/gnome-system-monitor/004-replace-dialog-set.patch
new file mode 100644
index 0000000000..3a6e25aef3
--- /dev/null
+++ b/main/gnome-system-monitor/004-replace-dialog-set.patch
@@ -0,0 +1,67 @@
+From e302c23c43112fe336bf9d0481bdd94fc5af7b21 Mon Sep 17 00:00:00 2001
+From: Chris Kühl <chrisk@openismus.com>
+Date: Wed, 26 Jan 2011 13:12:09 +0000
+Subject: Replaced occurances of gtk_dialog_set_has_separator with g_object_set.
+
+---
+diff --git a/src/lsof.cpp b/src/lsof.cpp
+index 24f14a5..7773eff 100644
+--- a/src/lsof.cpp
++++ b/src/lsof.cpp
+@@ -312,7 +312,6 @@ void procman_lsof(ProcData *procdata)
+ // G_CALLBACK(close_dialog), NULL);
+ gtk_window_set_resizable(GTK_WINDOW(dialog), TRUE);
+ gtk_window_set_default_size(GTK_WINDOW(dialog), 575, 400);
+- // gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE);
+ gtk_container_set_border_width(GTK_CONTAINER(dialog), 12);
+ GtkWidget *mainbox = gtk_vbox_new(FALSE, 12);
+ gtk_container_add(GTK_CONTAINER(dialog), mainbox);
+diff --git a/src/memmaps.cpp b/src/memmaps.cpp
+index 9a6fcae..3205721 100644
+--- a/src/memmaps.cpp
++++ b/src/memmaps.cpp
+@@ -608,7 +608,6 @@ create_single_memmaps_dialog (GtkTreeModel *model, GtkTreePath *path,
+ gtk_window_set_title(GTK_WINDOW(memmapsdialog), _("Memory Maps"));
+ gtk_window_set_resizable(GTK_WINDOW(memmapsdialog), TRUE);
+ gtk_window_set_default_size(GTK_WINDOW(memmapsdialog), 575, 400);
+- // gtk_dialog_set_has_separator(GTK_DIALOG(dialog), FALSE);
+ gtk_container_set_border_width(GTK_CONTAINER(memmapsdialog), 12);
+
+ GtkWidget *mainbox = gtk_vbox_new(FALSE, 12);
+diff --git a/src/openfiles.cpp b/src/openfiles.cpp
+index f4a088a..c4ba2c8 100644
+--- a/src/openfiles.cpp
++++ b/src/openfiles.cpp
+@@ -335,7 +335,7 @@ create_single_openfiles_dialog (GtkTreeModel *model, GtkTreePath *path,
+ NULL);
+ gtk_window_set_resizable (GTK_WINDOW (openfilesdialog), TRUE);
+ gtk_window_set_default_size (GTK_WINDOW (openfilesdialog), 575, 400);
+- gtk_dialog_set_has_separator (GTK_DIALOG (openfilesdialog), FALSE);
++ g_object_set(G_OBJECT(openfilesdialog), "has-separator", FALSE, NULL);
+ gtk_container_set_border_width (GTK_CONTAINER (openfilesdialog), 5);
+
+ vbox = gtk_dialog_get_content_area (GTK_DIALOG (openfilesdialog));
+diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
+index 4c814a0..398e68f 100644
+--- a/src/procdialogs.cpp
++++ b/src/procdialogs.cpp
+@@ -178,7 +178,7 @@ procdialog_create_renice_dialog (ProcData *procdata)
+ NULL);
+ renice_dialog = dialog;
+ gtk_window_set_resizable (GTK_WINDOW (renice_dialog), FALSE);
+- gtk_dialog_set_has_separator (GTK_DIALOG (renice_dialog), FALSE);
++ g_object_set (G_OBJECT (renice_dialog), "has-separator", FALSE, NULL);
+ gtk_container_set_border_width (GTK_CONTAINER (renice_dialog), 5);
+
+ button = gtk_button_new ();
+@@ -510,7 +510,7 @@ procdialog_create_preferences_dialog (ProcData *procdata)
+ /* any function to set list height by contents/items inside it. */
+ gtk_window_set_default_size (GTK_WINDOW (dialog), 400, 420);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog), 5);
+- gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
++ g_object_set (G_OBJECT (dialog), "has-separator", FALSE, NULL);
+ prefs_dialog = dialog;
+
+ main_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
+--
+cgit v0.9