[Xfce4-commits] [apps/mousepad] 01/01: Change line number printing label

noreply at xfce.org noreply at xfce.org
Sat Jul 12 05:02:41 CEST 2014


This is an automated email from the git hooks/post-receive script.

mbrush pushed a commit to branch master
in repository apps/mousepad.

commit 9525d1f7d7e824286f51ff2111a5a82098d23a39
Author: Matthew Brush <mbrush at codebrainz.ca>
Date:   Fri Jul 11 20:01:20 2014 -0700

    Change line number printing label
    
    To make it easier to translate in various languages. Also add a tooltip
    to further explain the setting in case the label is unclear.
    
    Closes #8942 (https://bugzilla.xfce.org/show_bug.cgi?id=8942)
---
 mousepad/mousepad-print.c |   11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/mousepad/mousepad-print.c b/mousepad/mousepad-print.c
index 29625cf..f9ae90f 100644
--- a/mousepad/mousepad-print.c
+++ b/mousepad/mousepad-print.c
@@ -649,13 +649,17 @@ mousepad_print_create_custom_widget (GtkPrintOperation *operation)
   gtk_container_add (GTK_CONTAINER (alignment), print->widget_line_numbers_hbox);
   gtk_widget_show (print->widget_line_numbers_hbox);
 
-  label = gtk_label_new (_("Number every"));
+  label = gtk_label_new (_("Numbering interval:"));
   gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
   gtk_box_pack_start (GTK_BOX (print->widget_line_numbers_hbox), label, FALSE, TRUE, 0);
   gtk_widget_show (label);
 
   adjustment = GTK_ADJUSTMENT (gtk_adjustment_new (1.0, 1.0, 100.0, 1.0, 0.0, 0.0));
   print->widget_line_numbers_spin = gtk_spin_button_new (adjustment, 1.0, 0);
+  gtk_widget_set_tooltip_text (print->widget_line_numbers_spin,
+    _("The interval at which to print line numbers. For example a value of 1 "
+      "will print a line number on each line, a value of 2 will print a line "
+      "number on every other line, and so on."));
   gtk_spin_button_set_value (GTK_SPIN_BUTTON (print->widget_line_numbers_spin),
                              (gdouble) print->line_number_increment);
   g_signal_connect (G_OBJECT (print->widget_line_numbers_spin),
@@ -665,11 +669,6 @@ mousepad_print_create_custom_widget (GtkPrintOperation *operation)
   gtk_box_pack_start (GTK_BOX (print->widget_line_numbers_hbox), print->widget_line_numbers_spin, FALSE, TRUE, 0);
   gtk_widget_show (print->widget_line_numbers_spin);
 
-  label = gtk_label_new (_("line(s)"));
-  gtk_misc_set_alignment (GTK_MISC (label), 0.0, 0.5);
-  gtk_box_pack_start (GTK_BOX (print->widget_line_numbers_hbox), label, FALSE, TRUE, 0);
-  gtk_widget_show (label);
-
   button = print->widget_text_wrapping = gtk_check_button_new_with_mnemonic (_("Enable text _wrapping"));
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button),
                                 gtk_source_print_compositor_get_wrap_mode (print->compositor) == GTK_WRAP_NONE ? FALSE : TRUE);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list