From eb0fb3845bd7a6f3b566c454d16b6f7cd287ef9c Mon Sep 17 00:00:00 2001 From: Jasmine Hassan Date: Thu, 18 Oct 2012 11:25:15 +0200 Subject: [eel] remove eel_gtk_widget_set_shown() http://git.gnome.org/browse/nautilus/commit/?id=31dfbdc19075ddf92b4f04a2f84e3111c3fb429b --- eel/eel-gtk-extensions.c | 22 ---------------------- eel/eel-gtk-extensions.h | 3 --- 2 files changed, 25 deletions(-) (limited to 'eel') diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c index da8e7d7c..5b8121b6 100644 --- a/eel/eel-gtk-extensions.c +++ b/eel/eel-gtk-extensions.c @@ -353,28 +353,6 @@ eel_gtk_menu_tool_button_get_button (GtkMenuToolButton *tool_button) return button; } -/** - * eel_gtk_widget_set_shown - * - * Show or hide a widget. - * @widget: The widget. - * @shown: Boolean value indicating whether the widget should be shown or hidden. - **/ -void -eel_gtk_widget_set_shown (GtkWidget *widget, gboolean shown) -{ - g_return_if_fail (GTK_IS_WIDGET (widget)); - - if (shown) - { - gtk_widget_show (widget); - } - else - { - gtk_widget_hide (widget); - } -} - /* The standard gtk_adjustment_set_value ignores page size, which * disagrees with the logic used by scroll bars, for example. */ diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h index e26c2e2f..a5d8e60a 100644 --- a/eel/eel-gtk-extensions.h +++ b/eel/eel-gtk-extensions.h @@ -35,9 +35,6 @@ #define EEL_DEFAULT_POPUP_MENU_DISPLACEMENT 2 #define EEL_STANDARD_CLOSE_WINDOW_CONTROL_KEY 'w' -/* GtkWidget */ -void eel_gtk_widget_set_shown (GtkWidget *widget, - gboolean shown); /* GtkWindow */ void eel_gtk_window_set_initial_geometry (GtkWindow *window, -- cgit v1.2.1