[gtk-vnc] Added the ability to request an update.
- From: Jonh Wendell <jwendell src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gtk-vnc] Added the ability to request an update.
- Date: Thu, 15 Oct 2009 18:31:08 +0000 (UTC)
commit fc3106763604e5d448389de0b8594b75f50f015e
Author: Jonh Wendell <jwendell gnome org>
Date: Thu Oct 15 15:30:06 2009 -0300
Added the ability to request an update.
vnc_display_request_update() is the new symbol.
src/vncdisplay.c | 17 +++++++++++++++++
src/vncdisplay.h | 2 ++
2 files changed, 19 insertions(+), 0 deletions(-)
---
diff --git a/src/vncdisplay.c b/src/vncdisplay.c
index 05df8d2..f779a63 100644
--- a/src/vncdisplay.c
+++ b/src/vncdisplay.c
@@ -2311,6 +2311,23 @@ vnc_display_get_option_entries (void)
return gtk_vnc_args;
}
+gboolean
+vnc_display_request_update(VncDisplay *obj)
+{
+ g_return_val_if_fail (VNC_IS_DISPLAY (obj), FALSE);
+
+ if (!obj->priv->gvnc || !gvnc_is_initialized(obj->priv->gvnc))
+ return FALSE;
+
+ GVNC_DEBUG ("Requesting a full update");
+ return gvnc_framebuffer_update_request(obj->priv->gvnc,
+ 0,
+ 0,
+ 0,
+ obj->priv->fb.width,
+ obj->priv->fb.height);
+}
+
#ifdef WIN32
/* On Windows, we must call WSAStartup before using any sockets and we
diff --git a/src/vncdisplay.h b/src/vncdisplay.h
index 3a995eb..53bb246 100644
--- a/src/vncdisplay.h
+++ b/src/vncdisplay.h
@@ -147,6 +147,8 @@ gboolean vnc_display_is_pointer_absolute(VncDisplay *obj);
GOptionGroup * vnc_display_get_option_group(void);
const GOptionEntry * vnc_display_get_option_entries(void);
+gboolean vnc_display_request_update(VncDisplay *obj);
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]