[nautilus] location-bar: remove manual API for setting insensitive widgets
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] location-bar: remove manual API for setting insensitive widgets
- Date: Thu, 17 Feb 2011 16:31:54 +0000 (UTC)
commit a0e572e833c0e27c147d99094dc5655297a38be5
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Feb 16 00:40:15 2011 -0500
location-bar: remove manual API for setting insensitive widgets
It's not needed anymore
src/nautilus-location-bar.c | 17 -----------------
src/nautilus-location-bar.h | 2 --
2 files changed, 0 insertions(+), 19 deletions(-)
---
diff --git a/src/nautilus-location-bar.c b/src/nautilus-location-bar.c
index eee748d..6f63ff5 100644
--- a/src/nautilus-location-bar.c
+++ b/src/nautilus-location-bar.c
@@ -565,23 +565,6 @@ nautilus_location_bar_set_location (NautilusLocationBar *bar,
nautilus_location_bar_update_label (bar);
}
-/* change background color based on activity state */
-void
-nautilus_location_bar_set_active (NautilusLocationBar *location_bar, gboolean is_active)
-{
- if (is_active) {
- /* reset style to default */
- gtk_widget_override_background_color (GTK_WIDGET (location_bar->details->entry), GTK_STATE_FLAG_ACTIVE, NULL);
- } else {
- GtkStyleContext *style;
- GdkRGBA color;
-
- style = gtk_widget_get_style_context (GTK_WIDGET (location_bar->details->entry));
- gtk_style_context_get_background_color (style, GTK_STATE_FLAG_INSENSITIVE, &color);
- gtk_widget_override_background_color (GTK_WIDGET (location_bar->details->entry), GTK_STATE_FLAG_ACTIVE, &color);
- }
-}
-
NautilusEntry *
nautilus_location_bar_get_entry (NautilusLocationBar *location_bar)
{
diff --git a/src/nautilus-location-bar.h b/src/nautilus-location-bar.h
index dd66716..f70bcce 100644
--- a/src/nautilus-location-bar.h
+++ b/src/nautilus-location-bar.h
@@ -63,8 +63,6 @@ typedef struct {
GType nautilus_location_bar_get_type (void);
GtkWidget* nautilus_location_bar_new (void);
-void nautilus_location_bar_set_active (NautilusLocationBar *location_bar,
- gboolean is_active);
NautilusEntry * nautilus_location_bar_get_entry (NautilusLocationBar *location_bar);
void nautilus_location_bar_activate (NautilusLocationBar *bar);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]