[devhelp/wip/swilmet/misc: 15/17] window: set object signal handler for ::open-link
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [devhelp/wip/swilmet/misc: 15/17] window: set object signal handler for ::open-link
- Date: Sat, 19 Dec 2015 11:22:39 +0000 (UTC)
commit 26c1a178784f1af3b8ab8243a2f107b940c04647
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun Nov 15 18:47:53 2015 +0100
window: set object signal handler for ::open-link
https://bugzilla.gnome.org/show_bug.cgi?id=758141
src/dh-window.c | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
---
diff --git a/src/dh-window.c b/src/dh-window.c
index 80e3bfc..8cffe17 100644
--- a/src/dh-window.c
+++ b/src/dh-window.c
@@ -453,7 +453,7 @@ gear_menu_cb (GSimpleAction *action,
}
static void
-window_open_link_cb (DhWindow *window,
+dh_window_open_link (DhWindow *window,
const char *location,
DhOpenLinkFlags flags)
{
@@ -642,11 +642,6 @@ dh_window_init (DhWindow *window)
g_signal_connect (priv->gtk_settings, "notify::gtk-xft-dpi",
G_CALLBACK (gtk_xft_dpi_changed_cb), window);
- g_signal_connect (window,
- "open-link",
- G_CALLBACK (window_open_link_cb),
- window);
-
g_action_map_add_action_entries (G_ACTION_MAP (window),
win_entries, G_N_ELEMENTS (win_entries),
window);
@@ -695,6 +690,8 @@ dh_window_class_init (DhWindowClass *klass)
widget_class->screen_changed = dh_window_screen_changed;
+ klass->open_link = dh_window_open_link;
+
signals[OPEN_LINK] =
g_signal_new ("open-link",
G_TYPE_FROM_CLASS (klass),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]