vinagre r280 - in branches/unstable: . src
- From: jwendell svn gnome org
- To: svn-commits-list gnome org
- Subject: vinagre r280 - in branches/unstable: . src
- Date: Thu, 3 Apr 2008 23:18:09 +0100 (BST)
Author: jwendell
Date: Thu Apr 3 23:18:09 2008
New Revision: 280
URL: http://svn.gnome.org/viewvc/vinagre?rev=280&view=rev
Log:
2008-04-03 Jonh Wendell <jwendell gnome org>
* src/vinagre-commands.c: Show an error message if running composited
window and try to enable scaling. Compiz doesn't work well with OpenGL
applications yet.
Modified:
branches/unstable/ChangeLog
branches/unstable/src/vinagre-commands.c
Modified: branches/unstable/src/vinagre-commands.c
==============================================================================
--- branches/unstable/src/vinagre-commands.c (original)
+++ branches/unstable/src/vinagre-commands.c Thu Apr 3 23:18:09 2008
@@ -213,6 +213,16 @@
g_return_if_fail (VINAGRE_IS_WINDOW (window));
active = gtk_toggle_action_get_active (GTK_TOGGLE_ACTION (action));
+
+ if (active &&
+ gdk_screen_is_composited (gtk_widget_get_screen (GTK_WIDGET (window))))
+ {
+ gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), FALSE);
+ vinagre_utils_show_error (_("Scaling does not work properly on composited windows. Disable the visual effects and try again."),
+ GTK_WINDOW (window));
+ return;
+ }
+
if (!vinagre_tab_set_scaling (vinagre_window_get_active_tab (window), active))
{
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), FALSE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]