gnome-utils r8542 - trunk/gnome-screenshot



Author: cosimoc
Date: Sat Apr  4 11:33:58 2009
New Revision: 8542
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=8542&view=rev

Log:
2009-04-04  Cosimo Cecchi  <cosimoc gnome org>

	* gnome-screenshot.c (target_toggled_cb), (create_effects_frame),
	(create_screenshot_frame): disable the effects section altogether
	when taking a screenshot of an user selected area. Use better
	wording for the user selection feature (#577861).


Modified:
   trunk/gnome-screenshot/ChangeLog
   trunk/gnome-screenshot/gnome-screenshot.c

Modified: trunk/gnome-screenshot/gnome-screenshot.c
==============================================================================
--- trunk/gnome-screenshot/gnome-screenshot.c	(original)
+++ trunk/gnome-screenshot/gnome-screenshot.c	Sat Apr  4 11:33:58 2009
@@ -114,6 +114,7 @@
 static GtkWidget *border_check = NULL;
 static GtkWidget *effect_combo = NULL;
 static GtkWidget *effect_label = NULL;
+static GtkWidget *effects_vbox = NULL;
 static GtkWidget *delay_hbox = NULL;
 
 static void
@@ -171,6 +172,7 @@
       gtk_widget_set_sensitive (effect_label, take_window_shot);
 
       gtk_widget_set_sensitive (delay_hbox, !take_area_shot);
+      gtk_widget_set_sensitive (effects_vbox, !take_area_shot);
     }
 }
 
@@ -321,6 +323,7 @@
   main_vbox = gtk_vbox_new (FALSE, 6);
   gtk_box_pack_start (GTK_BOX (outer_vbox), main_vbox, FALSE, FALSE, 0);
   gtk_widget_show (main_vbox);
+  effects_vbox = main_vbox;
 
   title = g_strconcat ("<b>", frame_title, "</b>", NULL);
   label = gtk_label_new (title);
@@ -454,7 +457,7 @@
 
   /** Grab area of the desktop **/
   radio = gtk_radio_button_new_with_mnemonic (group,
-                                              _("Grab a selected _area"));
+                                              _("Select _area to grab"));
   if (take_area_shot)
     gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (radio), TRUE);
   g_signal_connect (radio, "toggled",



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