]> git.0d.be Git - empathy.git/commitdiff
Reorganize code in empathy-ui-utils.ch to group related code
authorXavier Claessens <xclaesse@gmail.com>
Wed, 3 Mar 2010 14:33:35 +0000 (15:33 +0100)
committerXavier Claessens <xclaesse@gmail.com>
Wed, 3 Mar 2010 15:18:45 +0000 (16:18 +0100)
libempathy-gtk/empathy-ui-utils.c
libempathy-gtk/empathy-ui-utils.h

index 927b63eae24626daddd7bff1d89aaf176ca781f1..8819cb53a6932722ae08d709efd21b3006d7d3d3 100644 (file)
@@ -1531,19 +1531,6 @@ empathy_link_button_new (const gchar *url,
        return gtk_link_button_new_with_label (url, title);
 }
 
-void
-empathy_toggle_button_set_state_quietly (GtkWidget *widget,
-                                       GCallback  callback,
-                                       gpointer   user_data,
-                                       gboolean   active)
-{
-       g_return_if_fail (GTK_IS_TOGGLE_BUTTON (widget));
-
-       g_signal_handlers_block_by_func (widget, callback, user_data);
-       g_object_set (widget, "active", active, NULL);
-       g_signal_handlers_unblock_by_func (widget, callback, user_data);
-}
-
 void
 empathy_send_file (EmpathyContact *contact, GFile *file)
 {
@@ -1703,3 +1690,16 @@ empathy_receive_file_with_file_chooser (EmpathyFTHandler *handler)
        gtk_widget_show (widget);
 }
 
+void
+empathy_toggle_button_set_state_quietly (GtkWidget *widget,
+                                       GCallback  callback,
+                                       gpointer   user_data,
+                                       gboolean   active)
+{
+       g_return_if_fail (GTK_IS_TOGGLE_BUTTON (widget));
+
+       g_signal_handlers_block_by_func (widget, callback, user_data);
+       g_object_set (widget, "active", active, NULL);
+       g_signal_handlers_unblock_by_func (widget, callback, user_data);
+}
+
index 05033f30f8bc0e4d7a05c08d7f278328bf9944ec..097976ad6cd0e241f8f4afe10162918cf96e2dd4 100644 (file)
@@ -109,15 +109,18 @@ void        empathy_window_present                      (GtkWindow        *windo
 void        empathy_window_iconify                      (GtkWindow        *window,
                                                         GtkStatusIcon    *status_icon);
 GtkWindow * empathy_get_toplevel_window                 (GtkWidget        *widget);
+
+/* URL */
+gchar *     empathy_make_absolute_url                   (const gchar      *url);
+
+gchar *     empathy_make_absolute_url_len               (const gchar      *url,
+                                                        guint             len);
 void        empathy_url_show                            (GtkWidget        *parent,
                                                         const char       *url);
-void        empathy_toggle_button_set_state_quietly     (GtkWidget        *widget,
-                                                        GCallback         callback,
-                                                        gpointer          user_data,
-                                                        gboolean          active);
 GtkWidget * empathy_link_button_new                     (const gchar      *url,
                                                         const gchar      *title);
 
+/* File transfer */
 void        empathy_send_file                           (EmpathyContact   *contact,
                                                         GFile            *file);
 void        empathy_send_file_from_uri_list             (EmpathyContact   *contact,
@@ -125,9 +128,11 @@ void        empathy_send_file_from_uri_list             (EmpathyContact   *conta
 void        empathy_send_file_with_file_chooser         (EmpathyContact   *contact);
 void        empathy_receive_file_with_file_chooser      (EmpathyFTHandler *handler);
 
-gchar *     empathy_make_absolute_url                   (const gchar *url);
-gchar *     empathy_make_absolute_url_len               (const gchar *url,
-                                                        guint len);
+/* Misc */
+void        empathy_toggle_button_set_state_quietly     (GtkWidget        *widget,
+                                                        GCallback         callback,
+                                                        gpointer          user_data,
+                                                        gboolean          active);
 
 G_END_DECLS