gnome-utils r7982 - trunk/gnome-screenshot
- From: vuntz svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-utils r7982 - trunk/gnome-screenshot
- Date: Sun, 27 Jul 2008 14:58:45 +0000 (UTC)
Author: vuntz
Date: Sun Jul 27 14:58:45 2008
New Revision: 7982
URL: http://svn.gnome.org/viewvc/gnome-utils?rev=7982&view=rev
Log:
2008-07-27 Vincent Untz <vuntz gnome org>
* gnome-screenshot.c: (target_toggled_cb), (create_effects_frame):
Use HIG frame spacing and toggle label sensitivity too.
Patch by Dennis Cranston <dennis_cranston yahoo com>
Fix bug #403462.
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 Sun Jul 27 14:58:45 2008
@@ -108,6 +108,7 @@
static GtkWidget *border_check = NULL;
static GtkWidget *effect_combo = NULL;
+static GtkWidget *effect_label = NULL;
static void
display_help (GtkWindow *parent)
@@ -157,6 +158,7 @@
gtk_widget_set_sensitive (border_check, take_window_shot);
gtk_widget_set_sensitive (effect_combo, take_window_shot);
+ gtk_widget_set_sensitive (effect_label, take_window_shot);
}
}
@@ -309,19 +311,12 @@
gtk_widget_show (hbox);
align = gtk_alignment_new (0.0, 0.0, 0.0, 0.0);
- gtk_widget_set_size_request (align, 48, -1);
+ gtk_alignment_set_padding (GTK_ALIGNMENT (align), 0, 0, 12, 0);
gtk_box_pack_start (GTK_BOX (hbox), align, FALSE, FALSE, 0);
gtk_widget_show (align);
-#if 0
- image = gtk_image_new_from_stock (SCREENSHOOTER_ICON,
- GTK_ICON_SIZE_DIALOG);
- gtk_container_add (GTK_CONTAINER (align), image);
- gtk_widget_show (image);
-#endif
-
vbox = gtk_vbox_new (FALSE, 6);
- gtk_box_pack_start (GTK_BOX (hbox), vbox, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (align), vbox);
gtk_widget_show (vbox);
/** Include pointer **/
@@ -350,9 +345,11 @@
gtk_widget_show (hbox);
label = gtk_label_new_with_mnemonic (_("Apply _effect:"));
+ gtk_widget_set_sensitive (label, take_window_shot);
gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
gtk_box_pack_start (GTK_BOX (hbox), label, FALSE, FALSE, 0);
gtk_widget_show (label);
+ effect_label = label;
combo = create_effects_combo ();
gtk_widget_set_sensitive (combo, take_window_shot);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]