diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-03-03 22:33:35 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-03-03 23:18:45 +0800 |
commit | 4f990cd2192a39f0b6111fc9aad1848aaeda11c4 (patch) | |
tree | a3213757c8c651d10bc326ab47dbc8d8350b0642 /libempathy-gtk/empathy-ui-utils.c | |
parent | e99f234b1e90869d04a17e300662b4be8c353bfe (diff) | |
download | gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar.gz gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar.bz2 gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar.lz gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar.xz gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.tar.zst gsoc2013-empathy-4f990cd2192a39f0b6111fc9aad1848aaeda11c4.zip |
Reorganize code in empathy-ui-utils.ch to group related code
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r-- | libempathy-gtk/empathy-ui-utils.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c index 927b63eae..8819cb53a 100644 --- a/libempathy-gtk/empathy-ui-utils.c +++ b/libempathy-gtk/empathy-ui-utils.c @@ -1532,19 +1532,6 @@ empathy_link_button_new (const gchar *url, } 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) { EmpathyFTFactory *factory; @@ -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); +} + |