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

alex pushed a 
commit to branch 
master
in repository xfce/thunar.

commit 1ab31eedb289df2eb76bc76f963cef6155958310
Author: Theo Linkspfeifer <lastonestand...@tutanota.com>
Date:   Mon Mar 23 23:14:12 2020 +0100

    Add examples to "Select by Pattern" dialog (Bug #16587)
---
 thunar/thunar-standard-view.c | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/thunar/thunar-standard-view.c b/thunar/thunar-standard-view.c
index dbb5f98..3f313c7 100644
--- a/thunar/thunar-standard-view.c
+++ b/thunar/thunar-standard-view.c
@@ -2690,12 +2690,14 @@ thunar_standard_view_action_select_by_pattern 
(GtkAction          *action,
 {
   GtkWidget   *window;
   GtkWidget   *dialog;
+  GtkWidget   *vbox;
   GtkWidget   *hbox;
   GtkWidget   *label;
   GtkWidget   *entry;
   GList       *paths;
   GList       *lp;
   gint         response;
+  gchar       *example_pattern;
   const gchar *pattern;
   gchar       *pattern_extended = NULL;
 
@@ -2715,8 +2717,12 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
   gtk_window_set_default_size (GTK_WINDOW (dialog), 290, -1);
 
+  vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
+  gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG 
(dialog))), vbox, TRUE, TRUE, 0);
+  gtk_widget_show (vbox);
+
   hbox = g_object_new (GTK_TYPE_BOX, "orientation", 
GTK_ORIENTATION_HORIZONTAL, "border-width", 6, "spacing", 10, NULL);
-  gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG 
(dialog))), hbox, TRUE, TRUE, 0);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
   gtk_widget_show (hbox);
 
   label = gtk_label_new_with_mnemonic (_("_Pattern:"));
@@ -2729,6 +2735,19 @@ G_GNUC_END_IGNORE_DEPRECATIONS
   gtk_label_set_mnemonic_widget (GTK_LABEL (label), entry);
   gtk_widget_show (entry);
 
+  hbox = g_object_new (GTK_TYPE_BOX, "orientation", 
GTK_ORIENTATION_HORIZONTAL, "margin-right", 6, "margin-bottom", 6, "spacing", 
0, NULL);
+  gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
+  gtk_widget_show (hbox);
+
+  label = gtk_label_new (NULL);
+  example_pattern = g_strdup_printf ("<b>%s</b> %s ",
+                                     _("Examples:"),
+                                     "*.png, file\?\?.txt, pict*.\?\?\?");
+  gtk_label_set_markup (GTK_LABEL (label), example_pattern);
+  g_free (example_pattern);
+  gtk_box_pack_end (GTK_BOX (hbox), label, FALSE, FALSE, 0);
+  gtk_widget_show (label);
+
   response = gtk_dialog_run (GTK_DIALOG (dialog));
   if (response == GTK_RESPONSE_OK)
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
Xfce4-commits mailing list
Xfce4-commits@xfce.org
https://mail.xfce.org/mailman/listinfo/xfce4-commits

Reply via email to