[rhythmbox] daap: make plugin preferences work somewhat (bug #664680)
- From: Jonathan Matthew <jmatthew src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [rhythmbox] daap: make plugin preferences work somewhat (bug #664680)
- Date: Wed, 23 Nov 2011 23:07:19 +0000 (UTC)
commit 8bc2fc3f436591fe557a5c27418089e8d59e0658
Author: Jonathan Matthew <jonathan d14n org>
Date: Thu Nov 24 09:05:55 2011 +1000
daap: make plugin preferences work somewhat (bug #664680)
plugins/daap/rb-daap-plugin.c | 18 ++++++++----------
plugins/daap/rb-daap-sharing.c | 2 +-
2 files changed, 9 insertions(+), 11 deletions(-)
---
diff --git a/plugins/daap/rb-daap-plugin.c b/plugins/daap/rb-daap-plugin.c
index ac8bd4a..880c840 100644
--- a/plugins/daap/rb-daap-plugin.c
+++ b/plugins/daap/rb-daap-plugin.c
@@ -841,22 +841,20 @@ update_config_widget (RBDaapPlugin *plugin)
gtk_entry_set_text (GTK_ENTRY (name_entry), name);
g_free (name);
}
- g_signal_connect_object (name_entry,
- "focus-out-event",
- G_CALLBACK (share_name_entry_focus_out_event_cb),
- plugin,
- 0);
+ g_signal_connect (name_entry,
+ "focus-out-event",
+ G_CALLBACK (share_name_entry_focus_out_event_cb),
+ plugin);
password = g_settings_get_string (plugin->settings, "share-password");
if (password != NULL) {
gtk_entry_set_text (GTK_ENTRY (password_entry), password);
g_free (password);
}
- g_signal_connect_object (password_entry,
- "focus-out-event",
- G_CALLBACK (share_password_entry_focus_out_event_cb),
- plugin,
- 0);
+ g_signal_connect (password_entry,
+ "focus-out-event",
+ G_CALLBACK (share_password_entry_focus_out_event_cb),
+ plugin);
/*gtk_widget_set_sensitive (password_entry, require_password);*/
}
diff --git a/plugins/daap/rb-daap-sharing.c b/plugins/daap/rb-daap-sharing.c
index 4d8e100..63e5dbc 100644
--- a/plugins/daap/rb-daap-sharing.c
+++ b/plugins/daap/rb-daap-sharing.c
@@ -170,7 +170,7 @@ rb_daap_sharing_init (RBShell *shell)
create_share (shell);
}
- g_signal_connect_object (settings, "changed", G_CALLBACK (sharing_settings_changed_cb), share, 0);
+ g_signal_connect_object (settings, "changed", G_CALLBACK (sharing_settings_changed_cb), shell, 0);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]