| 78 } |
78 } |
| 79 |
79 |
| 80 static void |
80 static void |
| 81 pidgin_conversation_prefs_init(PidginConversationPrefs *prefs) |
81 pidgin_conversation_prefs_init(PidginConversationPrefs *prefs) |
| 82 { |
82 { |
| |
83 GSettings *settings = NULL; |
| |
84 |
| 83 gtk_widget_init_template(GTK_WIDGET(prefs)); |
85 gtk_widget_init_template(GTK_WIDGET(prefs)); |
| 84 |
86 |
| |
87 settings = g_settings_new_with_backend("im.pidgin.Purple.Conversations", |
| |
88 purple_core_get_settings_backend()); |
| |
89 g_settings_bind(settings, "send-typing-notifications", |
| |
90 prefs->im.send_typing, "active", G_SETTINGS_BIND_DEFAULT); |
| |
91 g_clear_object(&settings); |
| |
92 |
| |
93 #if 0 |
| |
94 /* TODO: Decide on whether to keep these preferences, and then port those |
| |
95 * to GSettings. */ |
| 85 pidgin_prefs_bind_switch(PIDGIN_PREFS_ROOT "/conversations/show_incoming_formatting", |
96 pidgin_prefs_bind_switch(PIDGIN_PREFS_ROOT "/conversations/show_incoming_formatting", |
| 86 prefs->show_incoming_formatting); |
97 prefs->show_incoming_formatting); |
| 87 |
|
| 88 pidgin_prefs_bind_switch("/purple/conversations/im/send_typing", |
|
| 89 prefs->im.send_typing); |
|
| 90 |
98 |
| 91 #ifdef _WIN32 |
99 #ifdef _WIN32 |
| 92 pidgin_prefs_bind_switch(PIDGIN_PREFS_ROOT "/win32/blink_im", |
100 pidgin_prefs_bind_switch(PIDGIN_PREFS_ROOT "/win32/blink_im", |
| 93 prefs->win32.blink_im); |
101 prefs->win32.blink_im); |
| 94 #else |
102 #else |
| 96 #endif |
104 #endif |
| 97 |
105 |
| 98 pidgin_prefs_bind_spin_button( |
106 pidgin_prefs_bind_spin_button( |
| 99 PIDGIN_PREFS_ROOT "/conversations/minimum_entry_lines", |
107 PIDGIN_PREFS_ROOT "/conversations/minimum_entry_lines", |
| 100 prefs->minimum_entry_lines); |
108 prefs->minimum_entry_lines); |
| |
109 #endif |
| 101 } |
110 } |
| 102 |
111 |
| 103 /****************************************************************************** |
112 /****************************************************************************** |
| 104 * API |
113 * API |
| 105 *****************************************************************************/ |
114 *****************************************************************************/ |