summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-10-18 11:25:15 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:49:21 +0200
commiteb0fb3845bd7a6f3b566c454d16b6f7cd287ef9c (patch)
tree35ecf1b15ba6603ae0ec61524b9fd64e488af685
parentf5b61ba409db5976bcc5be71accaac57ea88fcd0 (diff)
downloadcaja-eb0fb3845bd7a6f3b566c454d16b6f7cd287ef9c.tar.bz2
caja-eb0fb3845bd7a6f3b566c454d16b6f7cd287ef9c.tar.xz
[eel] remove eel_gtk_widget_set_shown()
http://git.gnome.org/browse/nautilus/commit/?id=31dfbdc19075ddf92b4f04a2f84e3111c3fb429b
-rw-r--r--eel/eel-gtk-extensions.c22
-rw-r--r--eel/eel-gtk-extensions.h3
2 files changed, 0 insertions, 25 deletions
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,