[gtk-vnc-devel] [PATCH] Switch to SetActive instead of SetPinned for AutoDrawer in gvncviewer



I've committed this as it's a pretty simple bug fix. Otherwise, when not in full screen mode, the top bunch of pixels are inaccessible.

Regards,

Anthony Liguori
# HG changeset patch
# User Anthony Liguori <anthony codemonkey ws>
# Date 1202348303 21600
# Node ID 74c5f106e11e98a4a8de50ae1b7e3bb60e8f8039
# Parent  2dcbedc3a39bdae77b5ef041ccd10f233c1065b8
SetActive has the behavior we want so let's use that.

diff -r 2dcbedc3a39b -r 74c5f106e11e examples/gvncviewer.c
--- a/examples/gvncviewer.c	Wed Feb 06 18:50:36 2008 -0600
+++ b/examples/gvncviewer.c	Wed Feb 06 19:38:23 2008 -0600
@@ -243,9 +243,9 @@ static gboolean window_state_event(GtkWi
 
 	if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) {
 		if (event->new_window_state & GDK_WINDOW_STATE_FULLSCREEN)
-			ViewAutoDrawer_SetPinned(drawer, FALSE);
+			ViewAutoDrawer_SetActive(drawer, TRUE);
 		else
-			ViewAutoDrawer_SetPinned(drawer, TRUE);
+			ViewAutoDrawer_SetActive(drawer, FALSE);
 	}
 
 	return FALSE;
@@ -322,7 +322,7 @@ int main(int argc, char **argv)
 	gtk_menu_item_set_submenu(GTK_MENU_ITEM(view), submenu);
 
 #if WITH_LIBVIEW
-	ViewAutoDrawer_SetPinned(VIEW_AUTODRAWER(layout), TRUE);
+	ViewAutoDrawer_SetActive(VIEW_AUTODRAWER(layout), FALSE);
 	ViewOvBox_SetOver(VIEW_OV_BOX(layout), menubar);
 	ViewOvBox_SetUnder(VIEW_OV_BOX(layout), vnc);
 #else


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]