summaryrefslogtreecommitdiff
path: root/pluma/pluma-panel.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-05-19 14:52:18 +0200
committerinfirit <[email protected]>2014-05-19 18:37:37 +0200
commit51291bf1b29004ea4703845fc127cc1a4468b092 (patch)
treea6280641c96a58b9872e6c4e7835d5dd313667ca /pluma/pluma-panel.c
parent53be5f994d2c52142debdfdaf089ae077389cfbd (diff)
downloadpluma-51291bf1b29004ea4703845fc127cc1a4468b092.tar.bz2
pluma-51291bf1b29004ea4703845fc127cc1a4468b092.tar.xz
Replace deprecated gtk widget function
The replacement functions are available since 2.18 GTK_WIDGET_HAS_FOCUS -> gtk_widget_has_focus GTK_WIDGET_VISIBLE -> gtk_widget_get_visible GTK_WIDGET_SET_FLAGS -> gtk_widget_set_*
Diffstat (limited to 'pluma/pluma-panel.c')
-rw-r--r--pluma/pluma-panel.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/pluma/pluma-panel.c b/pluma/pluma-panel.c
index 3bc47df3..5271eeb7 100644
--- a/pluma/pluma-panel.c
+++ b/pluma/pluma-panel.c
@@ -706,11 +706,7 @@ pluma_panel_add_item (PlumaPanel *panel,
menu_label = gtk_label_new (name);
gtk_misc_set_alignment (GTK_MISC (menu_label), 0.0, 0.5);
-#if GTK_CHECK_VERSION (3, 0, 0)
if (!gtk_widget_get_visible (item))
-#else
- if (!GTK_WIDGET_VISIBLE (item))
-#endif
gtk_widget_show (item);
gtk_notebook_append_page_menu (GTK_NOTEBOOK (panel->priv->notebook),