summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2010-08-21 17:23:25 +0200
committerCosimo Cecchi <cosimoc@gnome.org>2010-08-21 17:23:25 +0200
commit57b66862a53298468755e12ca3712569274f0a32 (patch)
tree0f96897fe25da2083c57ca4190800807db68482c
parent472f3e1433ecb3d5e1a7fc8707975f45dd8d0469 (diff)
downloadnautilus-57b66862a53298468755e12ca3712569274f0a32.tar.gz
[eel] remove functions to set widget backgrounds
These are unused now.
-rw-r--r--eel/eel-gtk-extensions.c32
-rw-r--r--eel/eel-gtk-extensions.h4
2 files changed, 0 insertions, 36 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 583132a36..43bbc5a41 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -493,38 +493,6 @@ eel_gtk_label_make_bold (GtkLabel *label)
pango_font_description_free (font_desc);
}
-void
-eel_gtk_widget_set_background_color (GtkWidget *widget,
- const char *color_spec)
-{
- GdkColor color;
-
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- eel_gdk_color_parse_with_white_default (color_spec, &color);
-
- gtk_widget_modify_bg (widget, GTK_STATE_NORMAL, &color);
- gtk_widget_modify_base (widget, GTK_STATE_NORMAL, &color);
- gtk_widget_modify_bg (widget, GTK_STATE_ACTIVE, &color);
- gtk_widget_modify_base (widget, GTK_STATE_ACTIVE, &color);
-}
-
-void
-eel_gtk_widget_set_foreground_color (GtkWidget *widget,
- const char *color_spec)
-{
- GdkColor color;
-
- g_return_if_fail (GTK_IS_WIDGET (widget));
-
- eel_gdk_color_parse_with_white_default (color_spec, &color);
-
- gtk_widget_modify_fg (widget, GTK_STATE_NORMAL, &color);
- gtk_widget_modify_text (widget, GTK_STATE_NORMAL, &color);
- gtk_widget_modify_fg (widget, GTK_STATE_ACTIVE, &color);
- gtk_widget_modify_text (widget, GTK_STATE_ACTIVE, &color);
-}
-
static gboolean
tree_view_button_press_callback (GtkWidget *tree_view,
GdkEventButton *event,
diff --git a/eel/eel-gtk-extensions.h b/eel/eel-gtk-extensions.h
index a6f86270a..82d2938ab 100644
--- a/eel/eel-gtk-extensions.h
+++ b/eel/eel-gtk-extensions.h
@@ -54,10 +54,6 @@ void eel_gtk_signal_connect_while_realized (GtkObject
/* GtkWidget */
void eel_gtk_widget_set_shown (GtkWidget *widget,
gboolean shown);
-void eel_gtk_widget_set_background_color (GtkWidget *widget,
- const char *color_spec);
-void eel_gtk_widget_set_foreground_color (GtkWidget *widget,
- const char *color_spec);
/* GtkWindow */
void eel_gtk_window_set_initial_geometry (GtkWindow *window,