aboutsummaryrefslogtreecommitdiffstats
path: root/src/toolbar.c
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-10-23 20:52:52 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-10-23 20:52:52 +0800
commit4d8e9ed180c6d1506905e14fcc9ba26a7c24db19 (patch)
treef290f8564850f2076c2eff75942076306953f963 /src/toolbar.c
parentd92e40e0fb9d3eaabb4984111887fa54b1aeb0d0 (diff)
downloadgsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar.gz
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar.bz2
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar.lz
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar.xz
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.tar.zst
gsoc2013-epiphany-4d8e9ed180c6d1506905e14fcc9ba26a7c24db19.zip
Move the spinner in his own mini toolbar.
2003-10-23 Marco Pesenti Gritti <marco@gnome.org> * data/ui/epiphany-toolbar.xml: * lib/egg/egg-editable-toolbar.c: (get_toolbar_position), (get_dock_nth), (get_toolbar_nth), (create_dock), (update_fixed), (toolbar_added_cb), (toolbar_removed_cb), (egg_editable_toolbar_construct), (egg_editable_toolbar_init), (egg_editable_toolbar_finalize), (egg_editable_toolbar_show), (egg_editable_toolbar_hide), (egg_editable_toolbar_set_fixed): * lib/egg/egg-editable-toolbar.h: * src/Makefile.am: * src/toolbar.c: (toolbar_setup_actions), (toolbar_init), (toolbar_spinner_start), (toolbar_spinner_stop): Move the spinner in his own mini toolbar.
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-xsrc/toolbar.c25
1 files changed, 5 insertions, 20 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index 025938e34..bcb5a5611 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -29,7 +29,6 @@
#include "ephy-location-entry.h"
#include "ephy-dnd.h"
#include "ephy-spinner.h"
-#include "ephy-spinner-action.h"
#include "ephy-location-action.h"
#include "ephy-favicon-action.h"
#include "ephy-topic-action.h"
@@ -326,13 +325,6 @@ toolbar_setup_actions (Toolbar *t)
gtk_action_group_add_action (t->priv->action_group, action);
g_object_unref (action);
- action = g_object_new (EPHY_TYPE_SPINNER_ACTION,
- "name", "Spinner",
- "label", _("Spinner"),
- NULL);
- gtk_action_group_add_action (t->priv->action_group, action);
- g_object_unref (action);
-
/* FIXME: I'm still waiting for the exact term to
* user here from the docs team.
*/
@@ -539,6 +531,11 @@ toolbar_init (Toolbar *t)
t->priv->ui_merge = NULL;
t->priv->visibility = TRUE;
t->priv->updating_address = FALSE;
+
+ t->priv->spinner = ephy_spinner_new ();
+ gtk_widget_show (t->priv->spinner);
+ egg_editable_toolbar_set_fixed (EGG_EDITABLE_TOOLBAR (t),
+ t->priv->spinner);
}
static void
@@ -577,23 +574,11 @@ toolbar_activate_location (Toolbar *t)
void
toolbar_spinner_start (Toolbar *t)
{
- GtkActionGroup *action_group;
- GtkAction *action;
-
- action_group = t->priv->action_group;
- action = gtk_action_group_get_action (action_group, "Spinner");
- g_object_set (action, "throbbing", TRUE, NULL);
}
void
toolbar_spinner_stop (Toolbar *t)
{
- GtkActionGroup *action_group;
- GtkAction *action;
-
- action_group = t->priv->action_group;
- action = gtk_action_group_get_action (action_group, "Spinner");
- g_object_set (action, "throbbing", FALSE, NULL);
}
void