[Goodies-commits] r6202 - in xfce4-screenshooter-plugin/trunk: . lib
Jerome Guelfucci
jeromeg at xfce.org
Tue Nov 25 20:07:01 CET 2008
Author: jeromeg
Date: 2008-11-25 19:07:01 +0000 (Tue, 25 Nov 2008)
New Revision: 6202
Modified:
xfce4-screenshooter-plugin/trunk/ChangeLog
xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c
Log:
Improve the dialog a little bit.
Modified: xfce4-screenshooter-plugin/trunk/ChangeLog
===================================================================
--- xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-25 16:59:02 UTC (rev 6201)
+++ xfce4-screenshooter-plugin/trunk/ChangeLog 2008-11-25 19:07:01 UTC (rev 6202)
@@ -1,6 +1,12 @@
2008-11-25 jeromeg
* lib/screenshooter-dialogs.c:
+ - improve the dialog.
+ - improve some strings.
+
+2008-11-25 jeromeg
+
+ * lib/screenshooter-dialogs.c:
- set icon size to 16 for the combobox.
- add (cb_save_toggled_sensi) to set to items insensitive
when not toggled. Add callback using this function.
Modified: xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c
===================================================================
--- xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c 2008-11-25 16:59:02 UTC (rev 6201)
+++ xfce4-screenshooter-plugin/trunk/lib/screenshooter-dialogs.c 2008-11-25 19:07:01 UTC (rev 6202)
@@ -156,7 +156,7 @@
static void cb_show_save_dialog_toggled (GtkToggleButton *tb,
ScreenshotData *sd)
{
- sd->show_save_dialog = gtk_toggle_button_get_active (tb);
+ sd->show_save_dialog = !gtk_toggle_button_get_active (tb);
}
@@ -429,8 +429,7 @@
dlg =
xfce_titled_dialog_new_with_buttons (_("Take a screenshot"),
NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL,
GTK_STOCK_OK, GTK_RESPONSE_OK,
NULL);
@@ -440,8 +439,7 @@
dlg =
xfce_titled_dialog_new_with_buttons (_("Take a screenshot"),
NULL,
- GTK_DIALOG_DESTROY_WITH_PARENT |
- GTK_DIALOG_NO_SEPARATOR,
+ GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_OK,
NULL);
}
@@ -461,7 +459,7 @@
/* Create area label */
area_label = gtk_label_new ("");
gtk_label_set_markup (GTK_LABEL (area_label),
- _("<span weight=\"bold\" stretch=\"semiexpanded\">Area to screenshot</span>"));
+ _("<span weight=\"bold\" stretch=\"semiexpanded\">Area to capture</span>"));
gtk_misc_set_alignment (GTK_MISC (area_label), 0, 0);
gtk_widget_show (area_label);
@@ -491,7 +489,7 @@
fullscreen_button =
gtk_radio_button_new_with_mnemonic (NULL,
- _("Whole screen"));
+ _("Entire screen"));
gtk_box_pack_start (GTK_BOX (area_box),
fullscreen_button, FALSE,
@@ -702,7 +700,7 @@
/* Show save dialog checkbox */
save_checkbox =
- gtk_check_button_new_with_label (_("Show save dialog"));
+ gtk_check_button_new_with_label (_("Save to default location"));
gtk_widget_show (save_checkbox);
gtk_box_pack_start (GTK_BOX (save_box),
@@ -718,7 +716,27 @@
g_signal_connect (G_OBJECT (save_radio_button), "toggled",
G_CALLBACK (cb_toggle_set_sensi), save_box);
}
+
+ /* Copy to clipboard radio button */
+ clipboard_radio_button =
+ gtk_radio_button_new_with_mnemonic (
+ gtk_radio_button_get_group (GTK_RADIO_BUTTON (save_radio_button)),
+ _("Copy to the clipboard"));
+
+ gtk_box_pack_start (GTK_BOX (actions_box),
+ clipboard_radio_button, FALSE,
+ FALSE, 0);
+
+ gtk_widget_show (clipboard_radio_button);
+
+ gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (clipboard_radio_button),
+ (sd->action == CLIPBOARD));
+
+ g_signal_connect (G_OBJECT (clipboard_radio_button), "toggled",
+ G_CALLBACK (cb_clipboard_toggled),
+ sd);
+
#ifdef HAVE_GIO
/* Open with radio button */
@@ -726,7 +744,7 @@
open_with_radio_button =
gtk_radio_button_new_with_mnemonic (
gtk_radio_button_get_group (GTK_RADIO_BUTTON (save_radio_button)),
- _("Open with"));
+ _("Open with:"));
gtk_container_add (GTK_CONTAINER (actions_box),
open_with_radio_button);
@@ -816,27 +834,7 @@
gtk_widget_show_all (combobox);
#endif
-
- /* Copy to clipboard radio button */
-
- clipboard_radio_button =
- gtk_radio_button_new_with_mnemonic (
- gtk_radio_button_get_group (GTK_RADIO_BUTTON (save_radio_button)),
- _("Copy to the clipboard"));
-
- gtk_box_pack_start (GTK_BOX (actions_box),
- clipboard_radio_button, FALSE,
- FALSE, 6);
-
- gtk_widget_show (clipboard_radio_button);
-
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (clipboard_radio_button),
- (sd->action == CLIPBOARD));
-
- g_signal_connect (G_OBJECT (clipboard_radio_button), "toggled",
- G_CALLBACK (cb_clipboard_toggled),
- sd);
-
+
return dlg;
}
More information about the Goodies-commits
mailing list