aboutsummaryrefslogtreecommitdiffstats
path: root/src/toolbar.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-07-03 05:59:32 +0800
committerChristian Persch <chpe@src.gnome.org>2004-07-03 05:59:32 +0800
commitb597caf899ec8778d8302f6ccce3a01651bb1b25 (patch)
tree2cc52a6d042ff50072e6ed7f0779ec3b5a5bbe4e /src/toolbar.c
parentd7a633cd5f758d3812959fe562dd2dd35b275c1e (diff)
downloadgsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar.gz
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar.bz2
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar.lz
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar.xz
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.tar.zst
gsoc2013-epiphany-b597caf899ec8778d8302f6ccce3a01651bb1b25.zip
R data/art/epiphany-tab-loading.gif:
2004-07-02 Christian Persch <chpe@cvs.gnome.org> * data/art/Makefile.am: R data/art/epiphany-tab-loading.gif: * lib/widgets/ephy-spinner.c: (get_spinner_dimensions), (ephy_spinner_init), (ephy_spinner_expose), (ephy_spinner_unload_images), (scale_to_real_size), (ephy_spinner_set_size), (ephy_spinner_size_request): * lib/widgets/ephy-spinner.h: * src/ephy-notebook.c: (sync_load_status), (build_tab_label): * src/toolbar.c: (fixed_toolbar_reconfigured_cb), (toolbar_init): Remove our tab loading animation and use mini-spinners instead.
Diffstat (limited to 'src/toolbar.c')
-rwxr-xr-xsrc/toolbar.c43
1 files changed, 14 insertions, 29 deletions
diff --git a/src/toolbar.c b/src/toolbar.c
index 16981fb02..bcff8f91f 100755
--- a/src/toolbar.c
+++ b/src/toolbar.c
@@ -399,39 +399,24 @@ toolbar_set_window (Toolbar *t, EphyWindow *window)
}
static void
-toolbar_style_changed_cb (GtkToolbar *toolbar,
- GtkToolbarStyle style,
- GtkWidget *spinner)
+fixed_toolbar_reconfigured_cb (GtkToolItem *fixed_item,
+ EphySpinner *spinner)
{
- gboolean small;
+ GtkToolbarStyle style;
+ GtkIconSize size;
- small = (style != GTK_TOOLBAR_BOTH);
+ style = gtk_tool_item_get_toolbar_style (fixed_item);
- ephy_spinner_set_small_mode (EPHY_SPINNER (spinner), small);
-}
-
-static void
-parent_set_cb (GtkWidget *item,
- GtkObject *old_parent,
- GtkWidget *spinner)
-{
- if (old_parent != NULL)
+ if (style == GTK_TOOLBAR_BOTH)
{
- g_return_if_fail (GTK_IS_TOOLBAR (old_parent));
-
- g_signal_handlers_disconnect_by_func
- (old_parent, G_CALLBACK (toolbar_style_changed_cb),
- spinner);
+ size = GTK_ICON_SIZE_INVALID;
}
-
- if (item->parent)
+ else
{
- g_return_if_fail (GTK_IS_TOOLBAR (item->parent));
-
- g_signal_connect (item->parent, "style_changed",
- G_CALLBACK (toolbar_style_changed_cb),
- spinner);
+ size = GTK_ICON_SIZE_LARGE_TOOLBAR;
}
+
+ ephy_spinner_set_size (spinner, size);
}
static void
@@ -452,10 +437,10 @@ toolbar_init (Toolbar *t)
gtk_container_add (GTK_CONTAINER (item), spinner);
gtk_widget_show (GTK_WIDGET (item));
- g_signal_connect (item, "parent_set",
- G_CALLBACK (parent_set_cb), spinner);
-
egg_editable_toolbar_set_fixed (EGG_EDITABLE_TOOLBAR (t), item);
+
+ g_signal_connect (item, "toolbar-reconfigured",
+ G_CALLBACK (fixed_toolbar_reconfigured_cb), spinner);
}
static void