[epiphany] ephy-statusbar: remove caret browsing indicator
- From: Xan Lopez <xan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] ephy-statusbar: remove caret browsing indicator
- Date: Thu, 13 May 2010 10:57:37 +0000 (UTC)
commit a3f08a52b5b93c67665ad9ca4341e30940538cf1
Author: Xan Lopez <xan gnome org>
Date: Thu May 13 12:56:29 2010 +0200
ephy-statusbar: remove caret browsing indicator
We now show a dialog before enabling the preference, which should be
warning enough.
doc/reference/epiphany-sections.txt | 1 -
src/ephy-statusbar.c | 39 -----------------------------------
src/ephy-statusbar.h | 3 --
src/ephy-window.c | 3 --
4 files changed, 0 insertions(+), 46 deletions(-)
---
diff --git a/doc/reference/epiphany-sections.txt b/doc/reference/epiphany-sections.txt
index 4757957..a139b77 100644
--- a/doc/reference/epiphany-sections.txt
+++ b/doc/reference/epiphany-sections.txt
@@ -219,7 +219,6 @@ ephy_location_action_set_address
<TITLE>EphyStatusbar</TITLE>
EphyStatusbar
ephy_statusbar_new
-ephy_statusbar_set_caret_mode
ephy_statusbar_set_popups_state
ephy_statusbar_add_widget
ephy_statusbar_remove_widget
diff --git a/src/ephy-statusbar.c b/src/ephy-statusbar.c
index b054129..bf37eb2 100644
--- a/src/ephy-statusbar.c
+++ b/src/ephy-statusbar.c
@@ -45,7 +45,6 @@ struct _EphyStatusbarPrivate
GtkWidget *hbox;
GtkWidget *icon_container;
- GtkWidget *caret_indicator;
GtkWidget *popups_manager_icon;
GtkWidget *popups_manager_evbox;
};
@@ -68,24 +67,6 @@ ephy_statusbar_class_init (EphyStatusbarClass *klass)
g_type_class_add_private (object_class, sizeof (EphyStatusbarPrivate));
}
-static void
-create_caret_indicator (EphyStatusbar *statusbar)
-{
- EphyStatusbarPrivate *priv = statusbar->priv;
- GtkWidget *label;
-
- priv->caret_indicator = label = gtk_label_new (_("Caret"));
- gtk_widget_show (label);
-
- gtk_widget_set_tooltip_text (label,
- /* Translators: this is the tooltip on the "Caret" icon
- * in the statusbar.
- */
- _("In keyboard selection mode, press F7 to exit"));
-
- ephy_statusbar_add_widget (statusbar, priv->caret_indicator);
-}
-
static gboolean
padlock_button_press_cb (GtkWidget *ebox,
GdkEventButton *event,
@@ -170,8 +151,6 @@ ephy_statusbar_init (EphyStatusbar *t)
&priv->popups_manager_evbox,
&priv->popups_manager_icon);
/* don't show priv->popups_manager_evbox yet */
-
- create_caret_indicator (t);
}
/**
@@ -188,24 +167,6 @@ ephy_statusbar_new (void)
}
/**
- * ephy_statusbar_set_caret_mode:
- * @statusbar: an #EphyStatusbar
- * @enabled: %TRUE to show the caret browsing mode indicator
- *
- * Sets the statusbar's caret browsing mode indicator.
- **/
-void
-ephy_statusbar_set_caret_mode (EphyStatusbar *statusbar,
- gboolean enabled)
-{
- EphyStatusbarPrivate *priv = statusbar->priv;
-
- enabled = enabled != FALSE;
-
- g_object_set (priv->caret_indicator, "visible", enabled, NULL);
-}
-
-/**
* ephy_statusbar_set_popups_state:
* @statusbar: an #EphyStatusbar
* @hidden: %TRUE if popups have been hidden
diff --git a/src/ephy-statusbar.h b/src/ephy-statusbar.h
index fdcd2e9..3299360 100644
--- a/src/ephy-statusbar.h
+++ b/src/ephy-statusbar.h
@@ -58,9 +58,6 @@ GType ephy_statusbar_get_type (void);
GtkWidget *ephy_statusbar_new (void);
-void ephy_statusbar_set_caret_mode (EphyStatusbar *statusbar,
- gboolean enabled);
-
void ephy_statusbar_set_popups_state (EphyStatusbar *statusbar,
gboolean hidden,
const char *tooltip);
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 063ae78..31502ee 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -3455,7 +3455,6 @@ browse_with_caret_notifier (GConfClient *client,
GConfEntry *entry,
EphyWindow *window)
{
- EphyWindowPrivate *priv = window->priv;
GtkAction *action;
gboolean enabled;
@@ -3463,8 +3462,6 @@ browse_with_caret_notifier (GConfClient *client,
action = gtk_action_group_get_action (window->priv->action_group,
"BrowseWithCaret");
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), enabled);
-
- ephy_statusbar_set_caret_mode (EPHY_STATUSBAR (priv->statusbar), enabled);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]