pidgin/prefs/pidginproxyprefs.c

changeset 41621
29d99e6066b3
parent 41612
cb14d982669a
child 41653
0a37c380d760
equal deleted inserted replaced
41620:c6f7795ae294 41621:29d99e6066b3
86 gtk_editable_get_text(GTK_EDITABLE(entry))); 86 gtk_editable_get_text(GTK_EDITABLE(entry)));
87 } 87 }
88 } 88 }
89 89
90 static void 90 static void
91 proxy_button_clicked_cb(GtkWidget *button, gpointer data) 91 proxy_row_activated_cb(G_GNUC_UNUSED AdwActionRow *row, gpointer data)
92 { 92 {
93 PidginProxyPrefs *prefs = data; 93 PidginProxyPrefs *prefs = data;
94 GError *err = NULL; 94 GError *err = NULL;
95 95
96 if (g_spawn_command_line_async(prefs->gnome_program_path, &err)) { 96 if (g_spawn_command_line_async(prefs->gnome_program_path, &err)) {
151 gtk_widget_class_bind_template_child( 151 gtk_widget_class_bind_template_child(
152 widget_class, PidginProxyPrefs, username); 152 widget_class, PidginProxyPrefs, username);
153 gtk_widget_class_bind_template_child( 153 gtk_widget_class_bind_template_child(
154 widget_class, PidginProxyPrefs, password); 154 widget_class, PidginProxyPrefs, password);
155 gtk_widget_class_bind_template_callback(widget_class, 155 gtk_widget_class_bind_template_callback(widget_class,
156 proxy_button_clicked_cb); 156 proxy_row_activated_cb);
157 gtk_widget_class_bind_template_callback(widget_class, 157 gtk_widget_class_bind_template_callback(widget_class,
158 proxy_print_option); 158 proxy_print_option);
159 } 159 }
160 160
161 static void 161 static void
192 gtk_widget_set_visible(prefs->gnome, FALSE); 192 gtk_widget_set_visible(prefs->gnome, FALSE);
193 gtk_widget_set_visible(prefs->nongnome, TRUE); 193 gtk_widget_set_visible(prefs->nongnome, TRUE);
194 194
195 /* This is a global option that affects SOCKS4 usage even with 195 /* This is a global option that affects SOCKS4 usage even with
196 * account-specific proxy settings */ 196 * account-specific proxy settings */
197 pidgin_prefs_bind_checkbox("/purple/proxy/socks4_remotedns", 197 pidgin_prefs_bind_switch("/purple/proxy/socks4_remotedns",
198 prefs->socks4_remotedns); 198 prefs->socks4_remotedns);
199 199
200 prefs->type.type = PURPLE_PREF_STRING; 200 prefs->type.type = PURPLE_PREF_STRING;
201 prefs->type.key = "/purple/proxy/type"; 201 prefs->type.key = "/purple/proxy/type";
202 pidgin_prefs_bind_dropdown(&prefs->type); 202 pidgin_prefs_bind_dropdown(&prefs->type);
203 proxy_info = purple_global_proxy_get_info(); 203 proxy_info = purple_global_proxy_get_info();

mercurial