summaryrefslogtreecommitdiff
path: root/eel/eel-gtk-extensions.c
diff options
context:
space:
mode:
authorJasmine Hassan <[email protected]>2012-11-05 03:13:26 +0200
committerJasmine Hassan <[email protected]>2012-11-16 09:45:49 +0200
commit654e3c45484f0f082e5ba3ef097219476205caa4 (patch)
tree3ad70afe58858a5f97487dbf0dcf3574e1ea5bce /eel/eel-gtk-extensions.c
parent5b952b5d19dc17b42845c78cd4b3d5f1b3243756 (diff)
downloadcaja-654e3c45484f0f082e5ba3ef097219476205caa4.tar.bz2
caja-654e3c45484f0f082e5ba3ef097219476205caa4.tar.xz
[eel] remove functions to set widget backgrounds
Now that we've removed eel_gtk_widget_set_background_color calls in eel-debug-drawing.c and test-eel-image-table.c, both it and _set_foreground_color are unused. Original commit: http://git.gnome.org/browse/nautilus/commit/?id=57b66862a53298468755e12ca3712569274f0a32
Diffstat (limited to 'eel/eel-gtk-extensions.c')
-rw-r--r--eel/eel-gtk-extensions.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/eel/eel-gtk-extensions.c b/eel/eel-gtk-extensions.c
index 1453d5ef..f7ffdc90 100644
--- a/eel/eel-gtk-extensions.c
+++ b/eel/eel-gtk-extensions.c
@@ -508,38 +508,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,