summaryrefslogtreecommitdiff
path: root/plugins/shellexecui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-12 20:48:46 +0100
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2013-11-12 20:48:46 +0100
commit7ad78ff1ae43ce8195d828088b75a86f265bdf3f (patch)
tree2cb0ba077d4885fbb8c01a3e4b09941afa00cca2 /plugins/shellexecui
parent1fd10ce2366cc4a9366ddc430c832677a43684a7 (diff)
shellexecui: gui tweaks
Diffstat (limited to 'plugins/shellexecui')
-rw-r--r--plugins/shellexecui/interface.c11
-rw-r--r--plugins/shellexecui/shellexec.glade27
2 files changed, 36 insertions, 2 deletions
diff --git a/plugins/shellexecui/interface.c b/plugins/shellexecui/interface.c
index f6286eac..d00c0fc7 100644
--- a/plugins/shellexecui/interface.c
+++ b/plugins/shellexecui/interface.c
@@ -135,6 +135,7 @@ create_shellexec_conf_edit_dialog (void)
GtkWidget *local_check;
GtkWidget *remote_check;
GtkWidget *common_check;
+ GtkWidget *label1;
GtkWidget *dialog_action_area1;
GtkWidget *edit_cancel_button;
GtkWidget *edit_ok_button;
@@ -220,11 +221,18 @@ create_shellexec_conf_edit_dialog (void)
gtk_box_pack_start (GTK_BOX (dialog_vbox1), remote_check, FALSE, FALSE, 0);
gtk_widget_set_tooltip_text (remote_check, _("Works on remote files (e.g. http:// streams)"));
- common_check = gtk_check_button_new_with_mnemonic (_("Common"));
+ common_check = gtk_check_button_new_with_mnemonic (_("Generic (Main Menu)"));
gtk_widget_show (common_check);
gtk_box_pack_start (GTK_BOX (dialog_vbox1), common_check, FALSE, FALSE, 0);
gtk_widget_set_tooltip_text (common_check, _("Item should appear in the main menu"));
+ label1 = gtk_label_new (_("<small>If you want to add the command to main menu, make sure that title contains the menu path like this: \"File/My Command\", where File is the menu name in the English version.</small>"));
+ gtk_widget_show (label1);
+ gtk_box_pack_start (GTK_BOX (dialog_vbox1), label1, FALSE, FALSE, 0);
+ gtk_label_set_use_markup (GTK_LABEL (label1), TRUE);
+ gtk_label_set_line_wrap (GTK_LABEL (label1), TRUE);
+ gtk_misc_set_alignment (GTK_MISC (label1), 0, 0.5);
+
dialog_action_area1 = gtk_dialog_get_action_area (GTK_DIALOG (shellexec_conf_edit_dialog));
gtk_widget_show (dialog_action_area1);
gtk_button_box_set_layout (GTK_BUTTON_BOX (dialog_action_area1), GTK_BUTTONBOX_END);
@@ -261,6 +269,7 @@ create_shellexec_conf_edit_dialog (void)
GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, local_check, "local_check");
GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, remote_check, "remote_check");
GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, common_check, "common_check");
+ GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, label1, "label1");
GLADE_HOOKUP_OBJECT_NO_REF (shellexec_conf_edit_dialog, dialog_action_area1, "dialog_action_area1");
GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, edit_cancel_button, "edit_cancel_button");
GLADE_HOOKUP_OBJECT (shellexec_conf_edit_dialog, edit_ok_button, "edit_ok_button");
diff --git a/plugins/shellexecui/shellexec.glade b/plugins/shellexecui/shellexec.glade
index 3e64ca2b..aea894ae 100644
--- a/plugins/shellexecui/shellexec.glade
+++ b/plugins/shellexecui/shellexec.glade
@@ -480,7 +480,7 @@
<property name="visible">True</property>
<property name="tooltip" translatable="yes">Item should appear in the main menu</property>
<property name="can_focus">True</property>
- <property name="label" translatable="yes">Common</property>
+ <property name="label" translatable="yes">Generic (Main Menu)</property>
<property name="use_underline">True</property>
<property name="relief">GTK_RELIEF_NORMAL</property>
<property name="focus_on_click">True</property>
@@ -494,6 +494,31 @@
<property name="fill">False</property>
</packing>
</child>
+
+ <child>
+ <widget class="GtkLabel" id="label1">
+ <property name="visible">True</property>
+ <property name="label" translatable="yes">&lt;small&gt;If you want to add the command to main menu, make sure that title contains the menu path like this: &quot;File/My Command&quot;, where File is the menu name in the English version.&lt;/small&gt;</property>
+ <property name="use_underline">False</property>
+ <property name="use_markup">True</property>
+ <property name="justify">GTK_JUSTIFY_LEFT</property>
+ <property name="wrap">True</property>
+ <property name="selectable">False</property>
+ <property name="xalign">0</property>
+ <property name="yalign">0.5</property>
+ <property name="xpad">0</property>
+ <property name="ypad">0</property>
+ <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+ <property name="width_chars">-1</property>
+ <property name="single_line_mode">False</property>
+ <property name="angle">0</property>
+ </widget>
+ <packing>
+ <property name="padding">0</property>
+ <property name="expand">False</property>
+ <property name="fill">False</property>
+ </packing>
+ </child>
</widget>
</child>
</widget>