aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@it.gnome.org>2003-06-12 16:43:02 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-06-12 16:43:02 +0800
commit90eb335f874d32aff6e230d08a6eede1411396f4 (patch)
tree18d645e2b892034ac0f9f5a053d5fe53bd43fd18 /src
parent2adc5f349326386155e7edb506a9014a509ee035 (diff)
downloadgsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar.gz
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar.bz2
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar.lz
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar.xz
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.tar.zst
gsoc2013-epiphany-90eb335f874d32aff6e230d08a6eede1411396f4.zip
Update.
2003-06-12 Marco Pesenti Gritti <marco@it.gnome.org> * lib/egg/eggtreemodelfilter.c: Update. * src/ephy-window.c: (ephy_window_selection_received_cb), (menu_activate_cb): Do not set clipboard items sensitivity, because there is not a good way to do it atm. Open url on middle click (on the page) in the same tab.
Diffstat (limited to 'src')
-rw-r--r--src/ephy-window.c18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/ephy-window.c b/src/ephy-window.c
index 48334b956..20f9ce60e 100644
--- a/src/ephy-window.c
+++ b/src/ephy-window.c
@@ -349,25 +349,13 @@ ephy_window_selection_received_cb (GtkWidget *widget,
guint time, EphyWindow *window)
{
EphyTab *tab;
- const char *location;
if (selection_data->length <= 0 || selection_data->data == NULL)
return;
tab = ephy_window_get_active_tab (window);
- location = ephy_tab_get_location(tab);
- /* If this tab is not empty... */
- if (location != NULL && strcmp (location, "about:blank") != 0)
- {
- ephy_shell_new_tab (ephy_shell, window, tab,
- selection_data->data,
- EPHY_NEW_TAB_OPEN_PAGE);
- }
- else
- {
- ephy_embed_load_url (ephy_tab_get_embed (tab), selection_data->data);
- }
+ ephy_embed_load_url (ephy_tab_get_embed (tab), selection_data->data);
}
static void
@@ -386,6 +374,9 @@ static void
menu_activate_cb (GtkWidget *widget,
EphyWindow *window)
{
+/* FIXME we need to be notified by mozilla on selection
+ changes to do this properly */
+#if 0
gboolean cut, copy, paste, select_all;
EggActionGroup *action_group;
EggAction *action;
@@ -435,6 +426,7 @@ menu_activate_cb (GtkWidget *widget,
g_object_set (action, "sensitive", paste, NULL);
action = egg_action_group_get_action (action_group, "EditSelectAll");
g_object_set (action, "sensitive", select_all, NULL);
+#endif
}
static void