[epiphany/overview] ephy-overview: add "open-link" signal
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/overview] ephy-overview: add "open-link" signal
- Date: Mon, 20 Aug 2012 16:12:44 +0000 (UTC)
commit c3b5974d2b87132a97a8d7dbe8ae0df7425f3fe0
Author: Claudio Saavedra <csaavedra igalia com>
Date: Mon Aug 20 13:18:21 2012 +0300
ephy-overview: add "open-link" signal
embed/ephy-overview.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/embed/ephy-overview.c b/embed/ephy-overview.c
index 6466571..890b3c0 100644
--- a/embed/ephy-overview.c
+++ b/embed/ephy-overview.c
@@ -147,6 +147,7 @@ main_view_item_activated (GtkWidget *widget,
gtk_tree_model_get (model, &iter,
EPHY_OVERVIEW_STORE_URI, &url,
-1);
+ g_signal_emit_by_name (overview, "open-link", url);
#if 0
ephy_shell_new_tab (ephy_shell, window, NULL, url,
EPHY_NEW_TAB_OPEN_PAGE |
@@ -243,6 +244,14 @@ ephy_overview_class_init (EphyOverviewClass *klass)
object_class->get_property = ephy_overview_get_property;
object_class->constructed = ephy_overview_constructed;
+ g_signal_new ("open-link",
+ EPHY_TYPE_OVERVIEW,
+ G_SIGNAL_RUN_LAST,
+ 0, NULL, NULL,
+ g_cclosure_marshal_generic,
+ G_TYPE_NONE,
+ 1,
+ G_TYPE_STRING);
g_type_class_add_private (object_class, sizeof (EphyOverviewPrivate));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]