[vinagre] Implement get_dimensions() virtual function for VNC
- From: Jonh Wendell <jwendell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vinagre] Implement get_dimensions() virtual function for VNC
- Date: Fri, 2 Aug 2013 21:35:34 +0000 (UTC)
commit b376f1b5ff6000433631c876450b597d72d2b908
Author: Jonh Wendell <jonh wendell intel com>
Date: Thu Aug 1 11:10:25 2013 -0300
Implement get_dimensions() virtual function for VNC
This is used in fullscreen mode to check whether show the
scrollbars, and might lead to a corrupt fullscreen state
in some cases.
https://bugzilla.gnome.org/show_bug.cgi?id=580679
plugins/vnc/vinagre-vnc-tab.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/vnc/vinagre-vnc-tab.c b/plugins/vnc/vinagre-vnc-tab.c
index 73a13b8..f2eddd3 100644
--- a/plugins/vnc/vinagre-vnc-tab.c
+++ b/plugins/vnc/vinagre-vnc-tab.c
@@ -152,6 +152,15 @@ vnc_tab_get_tooltip (VinagreTab *tab)
}
static void
+vnc_tab_get_dimensions (VinagreTab *tab, int *w, int *h)
+{
+ VinagreVncTab *vnc_tab = VINAGRE_VNC_TAB (tab);
+
+ *w = vinagre_vnc_tab_get_original_width (vnc_tab);
+ *h = vinagre_vnc_tab_get_original_height (vnc_tab);
+}
+
+static void
vinagre_vnc_tab_finalize (GObject *object)
{
VinagreVncTab *vnc_tab = VINAGRE_VNC_TAB (object);
@@ -216,6 +225,7 @@ vinagre_vnc_tab_class_init (VinagreVncTabClass *klass)
tab_class->impl_get_tooltip = vnc_tab_get_tooltip;
tab_class->impl_get_connected_actions = vnc_get_connected_actions;
tab_class->impl_get_initialized_actions = vnc_get_initialized_actions;
+ tab_class->impl_get_dimensions = vnc_tab_get_dimensions;
g_object_class_install_property (object_class,
PROP_ORIGINAL_WIDTH,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]