[Xfce4-commits] <xfce4-clipman-plugin:master> [regex-test-dialog] Show a refresh icon while typing

Mike Massonnet noreply at xfce.org
Mon Dec 14 11:42:01 CET 2009


Updating branch refs/heads/master
         to 41872f5978340767ad71778b385829eac22983ab (commit)
       from 74f9439eafb7cfa38cbd6e3f95b9297c3c91fcc0 (commit)

commit 41872f5978340767ad71778b385829eac22983ab
Author: Mike Massonnet <mmassonnet at xfce.org>
Date:   Mon Dec 14 11:39:53 2009 +0100

    [regex-test-dialog] Show a refresh icon while typing

 panel-plugin/xfce4-clipman-settings.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/panel-plugin/xfce4-clipman-settings.c b/panel-plugin/xfce4-clipman-settings.c
index 6c2d848..d741798 100644
--- a/panel-plugin/xfce4-clipman-settings.c
+++ b/panel-plugin/xfce4-clipman-settings.c
@@ -687,6 +687,12 @@ cb_test_regex (GtkButton *button)
 static void 
 cb_test_regex_changed (GtkWidget *widget)
 {
+#if GTK_CHECK_VERSION (2, 16, 0)
+  if (test_regex_changed_timeout == 0)
+    gtk_entry_set_icon_from_stock (GTK_ENTRY (glade_xml_get_widget (gxml, "regex-entry")),
+                                   GTK_ENTRY_ICON_SECONDARY, GTK_STOCK_REFRESH);
+#endif
+
   if (test_regex_changed_timeout > 0)
     g_source_remove (test_regex_changed_timeout);
 



More information about the Xfce4-commits mailing list