summaryrefslogtreecommitdiff
path: root/src/procdialogs.cpp
diff options
context:
space:
mode:
authorStefano Karapetsas <[email protected]>2013-11-23 07:42:37 -0800
committerStefano Karapetsas <[email protected]>2013-11-23 07:42:37 -0800
commit43414fec3d31d10c8ca2c9fa227b7e4a75500719 (patch)
treedc02ba832518d84d7c1ae7a2d3ab65f076708ce6 /src/procdialogs.cpp
parent77940a42279f216e9707223e7f3320f13cb8d500 (diff)
parentcec5516cb84a7ecc9489a36cd19bfe28d1bba54e (diff)
downloadmate-system-monitor-43414fec3d31d10c8ca2c9fa227b7e4a75500719.tar.bz2
mate-system-monitor-43414fec3d31d10c8ca2c9fa227b7e4a75500719.tar.xz
Merge pull request #29 from eyelash/gtk3
add support for GTK3
Diffstat (limited to 'src/procdialogs.cpp')
-rw-r--r--src/procdialogs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/procdialogs.cpp b/src/procdialogs.cpp
index 8c395ab..1d4edbc 100644
--- a/src/procdialogs.cpp
+++ b/src/procdialogs.cpp
@@ -159,7 +159,11 @@ procdialog_create_renice_dialog (ProcData *procdata)
GtkWidget *label;
GtkWidget *priority_label;
GtkWidget *table;
+#if GTK_CHECK_VERSION(3,0,0)
+ GtkAdjustment *renice_adj;
+#else
GtkObject *renice_adj;
+#endif
GtkWidget *hscale;
GtkWidget *button;
GtkWidget *align;
@@ -178,7 +182,9 @@ procdialog_create_renice_dialog (ProcData *procdata)
NULL);
renice_dialog = dialog;
gtk_window_set_resizable (GTK_WINDOW (renice_dialog), FALSE);
+#if !GTK_CHECK_VERSION(2,22,0)
g_object_set (G_OBJECT (renice_dialog), "has-separator", FALSE, NULL);
+#endif
gtk_container_set_border_width (GTK_CONTAINER (renice_dialog), 5);
button = gtk_button_new ();
@@ -503,7 +509,9 @@ 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);
+#if !GTK_CHECK_VERSION(2,22,0)
g_object_set (G_OBJECT (dialog), "has-separator", FALSE, NULL);
+#endif
prefs_dialog = dialog;
main_vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog));