summaryrefslogtreecommitdiff
path: root/src/lsof.cpp
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-02-08 17:01:16 +0100
committerraveit65 <[email protected]>2018-02-09 18:30:24 +0100
commit36bcd30e3fb22d3c8c57c968fccfafe0c011e70f (patch)
treef20804d9619474a31ff1661276b12f37467a55e2 /src/lsof.cpp
parent77f8101320655020044cde5dfd0cd29bab98f8ce (diff)
downloadmate-system-monitor-36bcd30e3fb22d3c8c57c968fccfafe0c011e70f.tar.bz2
mate-system-monitor-36bcd30e3fb22d3c8c57c968fccfafe0c011e70f.tar.xz
avoid deprecated GtkStock
Diffstat (limited to 'src/lsof.cpp')
-rw-r--r--src/lsof.cpp24
1 files changed, 21 insertions, 3 deletions
diff --git a/src/lsof.cpp b/src/lsof.cpp
index 0a11c0a..c2c0fda 100644
--- a/src/lsof.cpp
+++ b/src/lsof.cpp
@@ -338,9 +338,21 @@ void procman_lsof(ProcData *procdata)
GtkWidget *entry = gtk_entry_new();
gtk_box_pack_start(GTK_BOX(hbox), entry, TRUE, TRUE, 0);
- GtkWidget *search_button = gtk_button_new_from_stock(GTK_STOCK_FIND);
+
+ GtkWidget *search_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", "gtk-find",
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
+
gtk_box_pack_start(GTK_BOX(hbox), search_button, FALSE, FALSE, 0);
- GtkWidget *clear_button = gtk_button_new_from_stock(GTK_STOCK_CLEAR);
+
+ GtkWidget *clear_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", "gtk-clear",
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
+
/* The default accelerator collides with the default close accelerator. */
gtk_button_set_label(GTK_BUTTON(clear_button), _("C_lear"));
gtk_box_pack_start(GTK_BOX(hbox), clear_button, FALSE, FALSE, 0);
@@ -370,7 +382,13 @@ void procman_lsof(ProcData *procdata)
gtk_box_pack_start(GTK_BOX(mainbox), scrolled, TRUE, TRUE, 0);
GtkWidget *bottom_box = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 12);
- GtkWidget *close_button = gtk_button_new_from_stock(GTK_STOCK_CLOSE);
+
+ GtkWidget *close_button = GTK_WIDGET (g_object_new (GTK_TYPE_BUTTON,
+ "label", "gtk-close",
+ "use-stock", TRUE,
+ "use-underline", TRUE,
+ NULL));
+
gtk_box_pack_start(GTK_BOX(mainbox), bottom_box, FALSE, FALSE, 0);
gtk_box_pack_end(GTK_BOX(bottom_box), close_button, FALSE, FALSE, 0);