aboutsummaryrefslogtreecommitdiffstats
path: root/src/ephy-window.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-02-13 22:13:43 +0800
committerChristian Persch <chpe@src.gnome.org>2004-02-13 22:13:43 +0800
commit235a1554235f221652529e2d4458730fbf709287 (patch)
tree76ffd773616401b84ca6224ce288cdf3ddc2669a /src/ephy-window.c
parent5d29d085c08e3d7cf6e4557657fe45ee0ad303cb (diff)
downloadgsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar.gz
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar.bz2
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar.lz
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar.xz
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.tar.zst
gsoc2013-epiphany-235a1554235f221652529e2d4458730fbf709287.zip
Install the statusbar .h file.
2004-02-13 Christian Persch <chpe@cvs.gnome.org> * doc/reference/Makefile.am: * src/Makefile.am: Install the statusbar .h file. R src/statusbar.[ch]: A src/ephy-statusbar.[ch]: s/statusbar/ephy-statusbar/ and friends. * src/ephy-window.c: (sync_tab_load_progress), (sync_tab_security), (ephy_window_init): Change references from statusbar to ephy-statusbar. Remove selection-received stuff, since it now lives in EphyTab.
Diffstat (limited to 'src/ephy-window.c')
-rw-r--r--src/ephy-window.c43
1 files changed, 12 insertions, 31 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index f50b4c9d8..193858355 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -39,7 +39,7 @@
#include "ephy-zoom.h"
#include "ephy-debug.h"
#include "ephy-file-helpers.h"
-#include "statusbar.h"
+#include "ephy-statusbar.h"
#include "toolbar.h"
#include "popup-commands.h"
#include "ephy-encoding-menu.h"
@@ -410,21 +410,6 @@ ephy_window_destroy (GtkObject *gtkobject)
}
static void
-ephy_window_selection_received_cb (GtkWidget *widget,
- GtkSelectionData *selection_data,
- guint time, EphyWindow *window)
-{
- EphyTab *tab;
-
- if (selection_data->length <= 0 || selection_data->data == NULL)
- return;
-
- tab = ephy_window_get_active_tab (window);
-
- ephy_embed_load_url (ephy_tab_get_embed (tab), selection_data->data);
-}
-
-static void
add_widget (GtkUIManager *merge, GtkWidget *widget, EphyWindow *window)
{
gtk_box_pack_start (GTK_BOX (window->priv->menu_dock),
@@ -1049,8 +1034,8 @@ sync_tab_load_progress (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
{
if (window->priv->closing) return;
- statusbar_set_progress (EPHY_STATUSBAR (window->priv->statusbar),
- ephy_tab_get_load_percent (tab));
+ ephy_statusbar_set_progress (EPHY_STATUSBAR (window->priv->statusbar),
+ ephy_tab_get_load_percent (tab));
}
static void
@@ -1181,8 +1166,8 @@ sync_tab_security (EphyTab *tab, GParamSpec *pspec, EphyWindow *window)
}
- statusbar_set_security_state (EPHY_STATUSBAR (window->priv->statusbar),
- secure, tooltip);
+ ephy_statusbar_set_security_state (EPHY_STATUSBAR (window->priv->statusbar),
+ secure, tooltip);
g_free (tooltip);
}
@@ -1923,18 +1908,12 @@ ephy_window_init (EphyWindow *window)
/* Setup the UI manager and connect verbs */
setup_ui_manager (window);
- window->priv->toolbar = toolbar_new (window);
- gtk_box_pack_end (GTK_BOX (window->priv->menu_dock),
- GTK_WIDGET (window->priv->toolbar),
- FALSE, FALSE, 0);
-
-
window->priv->notebook = setup_notebook (window);
gtk_box_pack_start (GTK_BOX (window->priv->main_vbox),
GTK_WIDGET (window->priv->notebook),
TRUE, TRUE, 0);
- window->priv->statusbar = statusbar_new ();
+ window->priv->statusbar = ephy_statusbar_new ();
gtk_box_pack_start (GTK_BOX (window->priv->main_vbox),
GTK_WIDGET (window->priv->statusbar),
FALSE, TRUE, 0);
@@ -1950,6 +1929,12 @@ ephy_window_init (EphyWindow *window)
window->priv->enc_menu = ephy_encoding_menu_new (window);
window->priv->bmk_menu = ephy_bookmarks_menu_new (window);
+ /* create the toolbar */
+ window->priv->toolbar = toolbar_new (window);
+ gtk_box_pack_end (GTK_BOX (window->priv->menu_dock),
+ GTK_WIDGET (window->priv->toolbar),
+ FALSE, FALSE, 0);
+
/* Once the window is sufficiently created let the extensions attach to it */
manager = EPHY_EXTENSION (ephy_shell_get_extensions_manager (ephy_shell));
ephy_extension_attach_window (manager, window);
@@ -1959,10 +1944,6 @@ ephy_window_init (EphyWindow *window)
gtk_widget_show (GTK_WIDGET (window->priv->notebook));
gtk_widget_show (window->priv->statusbar);
- g_signal_connect (window,
- "selection-received",
- G_CALLBACK (ephy_window_selection_received_cb),
- window);
g_signal_connect (window, "window-state-event",
G_CALLBACK (ephy_window_state_event_cb),
window);