diff options
author | infirit <[email protected]> | 2014-05-17 16:34:14 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2014-07-24 18:05:54 +0200 |
commit | 4c3cd50809b82b3d166db21f69d9fe11caf493f8 (patch) | |
tree | 156cbfd86778e0eb56d2a3131810898e104df52b /src/eom-thumb-nav.c | |
parent | 5115e68d942f1bdae0729841ae420de1a5c61840 (diff) | |
download | eom-4c3cd50809b82b3d166db21f69d9fe11caf493f8.tar.bz2 eom-4c3cd50809b82b3d166db21f69d9fe11caf493f8.tar.xz |
Use gtk_widget_hide instead of gtk_widget_hide_all
gtk_widget_hide_all is deprecated in gtk+2.24 for gtk_widget_hide.
Diffstat (limited to 'src/eom-thumb-nav.c')
-rw-r--r-- | src/eom-thumb-nav.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/eom-thumb-nav.c b/src/eom-thumb-nav.c index 0bde9f8..949c46a 100644 --- a/src/eom-thumb-nav.c +++ b/src/eom-thumb-nav.c @@ -32,10 +32,6 @@ #include <gtk/gtk.h> #include <string.h> -#if GTK_CHECK_VERSION(3, 0, 0) - #define gtk_widget_hide_all(w) gtk_widget_hide(w) -#endif - #define EOM_THUMB_NAV_GET_PRIVATE(object) \ (G_TYPE_INSTANCE_GET_PRIVATE ((object), EOM_TYPE_THUMB_NAV, EomThumbNavPrivate)) @@ -487,8 +483,8 @@ eom_thumb_nav_set_show_buttons (EomThumbNav *nav, gboolean show_buttons) gtk_widget_show_all (nav->priv->button_left); gtk_widget_show_all (nav->priv->button_right); } else { - gtk_widget_hide_all (nav->priv->button_left); - gtk_widget_hide_all (nav->priv->button_right); + gtk_widget_hide (nav->priv->button_left); + gtk_widget_hide (nav->priv->button_right); } } @@ -555,8 +551,8 @@ eom_thumb_nav_set_mode (EomThumbNav *nav, EomThumbNavMode mode) GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); - gtk_widget_hide_all (priv->button_left); - gtk_widget_hide_all (priv->button_right); + gtk_widget_hide (priv->button_left); + gtk_widget_hide (priv->button_right); break; @@ -571,8 +567,8 @@ eom_thumb_nav_set_mode (EomThumbNav *nav, EomThumbNavMode mode) GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); - gtk_widget_hide_all (priv->button_left); - gtk_widget_hide_all (priv->button_right); + gtk_widget_hide (priv->button_left); + gtk_widget_hide (priv->button_right); break; @@ -587,8 +583,8 @@ eom_thumb_nav_set_mode (EomThumbNav *nav, EomThumbNavMode mode) GTK_POLICY_NEVER, GTK_POLICY_AUTOMATIC); - gtk_widget_hide_all (priv->button_left); - gtk_widget_hide_all (priv->button_right); + gtk_widget_hide (priv->button_left); + gtk_widget_hide (priv->button_right); break; } |