summaryrefslogtreecommitdiff
path: root/eel
diff options
context:
space:
mode:
Diffstat (limited to 'eel')
-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,