From 7ad78ff1ae43ce8195d828088b75a86f265bdf3f Mon Sep 17 00:00:00 2001 From: Alexey Yakovenko Date: Tue, 12 Nov 2013 20:48:46 +0100 Subject: shellexecui: gui tweaks --- plugins/shellexecui/interface.c | 11 ++++++++++- plugins/shellexecui/shellexec.glade | 27 ++++++++++++++++++++++++++- 2 files changed, 36 insertions(+), 2 deletions(-) (limited to 'plugins/shellexecui') 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 (_("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.")); + 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 @@ True Item should appear in the main menu True - Common + Generic (Main Menu) True GTK_RELIEF_NORMAL True @@ -494,6 +494,31 @@ False + + + + True + <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> + False + True + GTK_JUSTIFY_LEFT + True + False + 0 + 0.5 + 0 + 0 + PANGO_ELLIPSIZE_NONE + -1 + False + 0 + + + 0 + False + False + + -- cgit v1.2.3