[Gurlchecker-commits] r731 - in trunk: . src ui

esaracco at users.labs.libre-entreprise.org esaracco at users.labs.libre-entreprise.org
Sun Jan 24 11:54:41 CET 2010


Author: esaracco
Date: 2010-01-24 10:54:40 +0000 (Sun, 24 Jan 2010)
New Revision: 731

Modified:
   trunk/ChangeLog
   trunk/configure.in
   trunk/src/callbacks.c
   trunk/src/check.c
   trunk/src/general.h
   trunk/ui/gurlchecker.glade
Log:
Added FILE in protocol filters.


Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/ChangeLog	2010-01-24 10:54:40 UTC (rev 731)
@@ -10,6 +10,7 @@
 
 	* GUI:
 
+	  - Added FILE in protocol filters.
 	  - Rewrote display filters event handlers to prevent submenu closure
 	    when a checkbox is toggled.
 

Modified: trunk/configure.in
===================================================================
--- trunk/configure.in	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/configure.in	2010-01-24 10:54:40 UTC (rev 731)
@@ -2,7 +2,7 @@
 AC_PREREQ(2.54)
 
 AC_INIT(configure.in)
-AM_INIT_AUTOMAKE(gurlchecker, 0.11.2svn2010012402)
+AM_INIT_AUTOMAKE(gurlchecker, 0.11.2svn2010012403)
 AM_CONFIG_HEADER(config.h)
 AC_CONFIG_MACRO_DIR([m4])
 

Modified: trunk/src/callbacks.c
===================================================================
--- trunk/src/callbacks.c	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/src/callbacks.c	2010-01-24 10:54:40 UTC (rev 731)
@@ -147,6 +147,8 @@
 
     if (strcmp (wname, "mwm_http_protocol") == 0)
       proto = UC_DISPLAY_PROTO_HTTP;
+    else if (strcmp (wname, "mwm_file_protocol") == 0)
+      proto = UC_DISPLAY_PROTO_FILE;
     else if (strcmp (wname, "mwm_https_protocol") == 0)
       proto = UC_DISPLAY_PROTO_HTTPS;
     else if (strcmp (wname, "mwm_ftp_protocol") == 0)

Modified: trunk/src/check.c
===================================================================
--- trunk/src/check.c	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/src/check.c	2010-01-24 10:54:40 UTC (rev 731)
@@ -722,6 +722,9 @@
             ((UC_DISPLAY_PROTO_IS (UC_DISPLAY_PROTO_HTTP) &&
               strcmp (protocol, UC_PROTOCOL_HTTP) == 0)
   
+            || (UC_DISPLAY_PROTO_IS (UC_DISPLAY_PROTO_FILE) &&
+                strcmp (protocol, UC_PROTOCOL_FILE) == 0)
+
             || (UC_DISPLAY_PROTO_IS (UC_DISPLAY_PROTO_HTTPS) &&
                 strcmp (protocol, UC_PROTOCOL_HTTPS) == 0)
   

Modified: trunk/src/general.h
===================================================================
--- trunk/src/general.h	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/src/general.h	2010-01-24 10:54:40 UTC (rev 731)
@@ -894,7 +894,8 @@
   UC_DISPLAY_PROTO_NONE = 0,
   UC_DISPLAY_PROTO_HTTP = 1,
   UC_DISPLAY_PROTO_HTTPS  = 1 << 1,
-  UC_DISPLAY_PROTO_FTP = 1 << 2
+  UC_DISPLAY_PROTO_FTP = 1 << 2,
+  UC_DISPLAY_PROTO_FILE = 1 << 3
 };
 UCDisplayProto current_display_proto;
 

Modified: trunk/ui/gurlchecker.glade
===================================================================
--- trunk/ui/gurlchecker.glade	2010-01-24 10:43:07 UTC (rev 730)
+++ trunk/ui/gurlchecker.glade	2010-01-24 10:54:40 UTC (rev 731)
@@ -5512,24 +5512,32 @@
                                 <child>
                                   <widget class="GtkCheckMenuItem" id="mwm_http_protocol">
                                     <property name="visible">True</property>
-                                    <property name="label" translatable="yes">HTTP</property>
+                                    <property name="label">HTTP</property>
                                     <signal name="event" handler="on_display_checkbox_protocol_event"/>
                                   </widget>
                                 </child>
                                 <child>
                                   <widget class="GtkCheckMenuItem" id="mwm_https_protocol">
                                     <property name="visible">True</property>
-                                    <property name="label" translatable="yes">HTTPS</property>
+                                    <property name="label">HTTPS</property>
                                     <signal name="event" handler="on_display_checkbox_protocol_event"/>
                                   </widget>
                                 </child>
                                 <child>
                                   <widget class="GtkCheckMenuItem" id="mwm_ftp_protocol">
                                     <property name="visible">True</property>
-                                    <property name="label" translatable="yes">FTP</property>
+                                    <property name="label">FTP</property>
                                     <signal name="event" handler="on_display_checkbox_protocol_event"/>
                                   </widget>
                                 </child>
+                                <child>
+                                  <widget class="GtkCheckMenuItem" id="mwm_file_protocol">
+                                    <property name="visible">True</property>
+                                    <property name="label">FILE</property>
+                                    <property name="use_underline">True</property>
+                                    <signal name="event" handler="on_display_checkbox_protocol_event"/>
+                                  </widget>
+                                </child>
                               </widget>
                             </child>
                           </widget>



More information about the Gurlchecker-commits mailing list