[Xfce4-commits] [apps/xfce4-terminal] 01/01: Add an icon to the search dialog close button
noreply at xfce.org
noreply at xfce.org
Wed Jul 13 18:02:11 CEST 2016
This is an automated email from the git hooks/post-receive script.
f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.
commit e620da81c7114c86d6dd7c464879e5f8823c3c04
Author: Igor <f2404 at yandex.ru>
Date: Wed Jul 13 19:02:05 2016 +0300
Add an icon to the search dialog close button
---
terminal/terminal-search-dialog.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/terminal/terminal-search-dialog.c b/terminal/terminal-search-dialog.c
index 91f0bd4..1670b3b 100644
--- a/terminal/terminal-search-dialog.c
+++ b/terminal/terminal-search-dialog.c
@@ -83,6 +83,7 @@ terminal_search_dialog_class_init (TerminalSearchDialogClass *klass)
static void
terminal_search_dialog_init (TerminalSearchDialog *dialog)
{
+ GtkWidget *close;
GtkWidget *hbox;
GtkWidget *vbox;
GtkWidget *label;
@@ -90,7 +91,10 @@ terminal_search_dialog_init (TerminalSearchDialog *dialog)
gtk_window_set_title (GTK_WINDOW (dialog), _("Find"));
gtk_window_set_default_size (GTK_WINDOW (dialog), 400, -1);
- gtk_dialog_add_button (GTK_DIALOG (dialog), _("_Close"), GTK_RESPONSE_CLOSE);
+ close = xfce_gtk_button_new_mixed ("window-close", _("_Close"));
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), close, GTK_RESPONSE_CLOSE);
+ gtk_widget_set_can_default (close, TRUE);
+ gtk_widget_show (close);
dialog->button_prev = xfce_gtk_button_new_mixed ("go-previous", _("_Previous"));
gtk_dialog_add_action_widget (GTK_DIALOG (dialog), dialog->button_prev, TERMINAL_RESPONSE_SEARCH_PREV);
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list