aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXan Lopez <xan@gnome.org>2010-05-13 18:56:29 +0800
committerXan Lopez <xan@gnome.org>2010-05-13 18:56:29 +0800
commita3f08a52b5b93c67665ad9ca4341e30940538cf1 (patch)
tree1a3ec314e230734f00e84fc35a0f0947e86a30fc
parent442bc41cb9fcf744ff874098cc8fadd0d121821c (diff)
downloadgsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar.gz
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar.bz2
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar.lz
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar.xz
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.tar.zst
gsoc2013-epiphany-a3f08a52b5b93c67665ad9ca4341e30940538cf1.zip
ephy-statusbar: remove caret browsing indicator
We now show a dialog before enabling the preference, which should be warning enough.
-rw-r--r--doc/reference/epiphany-sections.txt1
-rw-r--r--src/ephy-statusbar.c39
-rw-r--r--src/ephy-statusbar.h3
-rw-r--r--src/ephy-window.c3
4 files changed, 0 insertions, 46 deletions
diff --git a/doc/reference/epiphany-sections.txt b/doc/reference/epiphany-sections.txt
index 4757957dc..a139b7762 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 b054129fb..bf37eb266 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 fdcd2e93c..32993605d 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 063ae7878..31502ee4a 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