[vinagre] Show correct tooltip for RDP tab
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Show correct tooltip for RDP tab
- Date: Tue, 23 Feb 2016 14:02:47 +0000 (UTC)
commit c688251927a929a1d177905b665e885a16b201bb
Author: Marek Kasik <mkasik redhat com>
Date: Tue Feb 23 15:00:06 2016 +0100
Show correct tooltip for RDP tab
RDP tab didn't emit tab-initialized signal before which caused
that e.g. tab tooltip was not set.
Bump requirement of GLib to 2.32 because of G_SOURCE_REMOVE.
https://bugzilla.gnome.org/show_bug.cgi?id=762531
configure.ac | 2 +-
plugins/rdp/vinagre-rdp-tab.c | 10 ++++++++++
2 files changed, 11 insertions(+), 1 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 5e8aab0..3ad2d40 100644
--- a/configure.ac
+++ b/configure.ac
@@ -29,7 +29,7 @@ PKG_PROG_PKG_CONFIG([0.24])
AC_PROG_SED
-GLIB_DEPS="glib-2.0 >= 2.28.0 $gio_os >= 2.28.0"
+GLIB_DEPS="glib-2.0 >= 2.32.0 $gio_os >= 2.32.0"
GTHREAD_DEPS="gthread-2.0 >= 2.0.0"
GTK_DEPS="gtk+-3.0 >= 3.9.6"
GTK_VNC_DEPS="gtk-vnc-2.0 >= 0.4.3"
diff --git a/plugins/rdp/vinagre-rdp-tab.c b/plugins/rdp/vinagre-rdp-tab.c
index 0facea4..5bbfca0 100644
--- a/plugins/rdp/vinagre-rdp-tab.c
+++ b/plugins/rdp/vinagre-rdp-tab.c
@@ -231,6 +231,14 @@ vinagre_rdp_tab_dispose (GObject *object)
G_OBJECT_CLASS (vinagre_rdp_tab_parent_class)->dispose (object);
}
+static gboolean
+emit_delayed_signal (GObject *object)
+{
+ g_signal_emit_by_name (object, "tab-initialized");
+
+ return G_SOURCE_REMOVE;
+}
+
static void
vinagre_rdp_tab_constructed (GObject *object)
{
@@ -241,6 +249,8 @@ vinagre_rdp_tab_constructed (GObject *object)
setup_toolbar (rdp_tab);
open_freerdp (rdp_tab);
+
+ g_idle_add ((GSourceFunc) emit_delayed_signal, object);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]