vinagre r591 - in trunk: . src



Author: jwendell
Date: Fri Feb 13 14:55:17 2009
New Revision: 591
URL: http://svn.gnome.org/viewvc/vinagre?rev=591&view=rev

Log:
2009-02-13  Jonh Wendell <jwendell gnome org>

	* src/vinagre-tab.c (vinagre_tab_take_screenshot): Presents an error
	message if capture of screenshot fails.



Modified:
   trunk/ChangeLog
   trunk/src/vinagre-tab.c

Modified: trunk/src/vinagre-tab.c
==============================================================================
--- trunk/src/vinagre-tab.c	(original)
+++ trunk/src/vinagre-tab.c	Fri Feb 13 14:55:17 2009
@@ -1061,6 +1061,13 @@
   g_return_if_fail (VINAGRE_IS_TAB (tab));
 
   pix = vnc_display_get_pixbuf (VNC_DISPLAY (tab->priv->vnc));
+  if (!pix)
+    {
+      vinagre_utils_show_error (NULL,
+				_("Could not get a screenshot of the connection."),
+				GTK_WINDOW (tab->priv->window));
+      return;
+    }
 
   filename = NULL;
   name = vinagre_connection_get_best_name (tab->priv->conn);



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