summaryrefslogtreecommitdiff
path: root/src/openfiles.cpp
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-12-12 23:14:17 +0300
committermonsta <[email protected]>2016-01-11 14:05:07 +0300
commitcbb995375f1b97679fd42090e31277666249cc84 (patch)
tree46f1d7dcbbb63837e2ddfe8013bb756d01b72fdb /src/openfiles.cpp
parent6a9264b25f20fe81d837217a6d4875d4e594983f (diff)
downloadmate-system-monitor-cbb995375f1b97679fd42090e31277666249cc84.tar.bz2
mate-system-monitor-cbb995375f1b97679fd42090e31277666249cc84.tar.xz
drop GTK+2 code and --with-gtk build option
Diffstat (limited to 'src/openfiles.cpp')
-rw-r--r--src/openfiles.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/openfiles.cpp b/src/openfiles.cpp
index 48c7a91..76f2138 100644
--- a/src/openfiles.cpp
+++ b/src/openfiles.cpp
@@ -19,11 +19,6 @@
#define NI_IDN 0
#endif
-#if GTK_CHECK_VERSION (3, 0, 0)
-#define gtk_hbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_HORIZONTAL,Y)
-#define gtk_vbox_new(X,Y) gtk_box_new(GTK_ORIENTATION_VERTICAL,Y)
-#endif
-
enum
{
COL_FD,
@@ -265,9 +260,6 @@ create_openfiles_tree (ProcData *procdata)
);
tree = gtk_tree_view_new_with_model (GTK_TREE_MODEL (model));
-#if !GTK_CHECK_VERSION(3,0,0)
- gtk_tree_view_set_rules_hint (GTK_TREE_VIEW (tree), TRUE);
-#endif
g_object_unref (G_OBJECT (model));
for (i = 0; i < NUM_OPENFILES_COL-1; i++) {
@@ -340,11 +332,11 @@ create_single_openfiles_dialog (GtkTreeModel *model, GtkTreePath *path,
gtk_box_set_spacing (GTK_BOX (vbox), 2);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 5);
- dialog_vbox = gtk_vbox_new (FALSE, 6);
+ dialog_vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_container_set_border_width (GTK_CONTAINER (dialog_vbox), 5);
gtk_box_pack_start (GTK_BOX (vbox), dialog_vbox, TRUE, TRUE, 0);
- cmd_hbox = gtk_hbox_new (FALSE, 12);
+ cmd_hbox = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 12);
gtk_box_pack_start (GTK_BOX (dialog_vbox), cmd_hbox, FALSE, FALSE, 0);