comparison gtk/gtkprefs.c @ 15344:85a2aafc9c4b

[gaim-migrate @ 18136] some more paths-in-prefs cleanup committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Tue, 16 Jan 2007 05:12:48 +0000
parents 412c2b3b5fc0
children
comparison
equal deleted inserted replaced
15343:965f7e53e7c5 15344:85a2aafc9c4b
1196 1196
1197 #ifndef _WIN32 1197 #ifndef _WIN32
1198 static gboolean manual_browser_set(GtkWidget *entry, GdkEventFocus *event, gpointer data) { 1198 static gboolean manual_browser_set(GtkWidget *entry, GdkEventFocus *event, gpointer data) {
1199 const char *program = gtk_entry_get_text(GTK_ENTRY(entry)); 1199 const char *program = gtk_entry_get_text(GTK_ENTRY(entry));
1200 1200
1201 gaim_prefs_set_string("/gaim/gtk/browsers/command", program); 1201 gaim_prefs_set_path("/gaim/gtk/browsers/command", program);
1202 1202
1203 /* carry on normally */ 1203 /* carry on normally */
1204 return FALSE; 1204 return FALSE;
1205 } 1205 }
1206 1206
1329 browser_changed2_cb, hbox); 1329 browser_changed2_cb, hbox);
1330 1330
1331 gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0); 1331 gtk_box_pack_start (GTK_BOX (hbox), entry, FALSE, FALSE, 0);
1332 1332
1333 gtk_entry_set_text(GTK_ENTRY(entry), 1333 gtk_entry_set_text(GTK_ENTRY(entry),
1334 gaim_prefs_get_string("/gaim/gtk/browsers/command")); 1334 gaim_prefs_get_path("/gaim/gtk/browsers/command"));
1335 g_signal_connect(G_OBJECT(entry), "focus-out-event", 1335 g_signal_connect(G_OBJECT(entry), "focus-out-event",
1336 G_CALLBACK(manual_browser_set), NULL); 1336 G_CALLBACK(manual_browser_set), NULL);
1337 gaim_set_accessible_label (entry, label); 1337 gaim_set_accessible_label (entry, label);
1338 1338
1339 gtk_widget_show_all(ret); 1339 gtk_widget_show_all(ret);
2033 2033
2034 #ifndef _WIN32 2034 #ifndef _WIN32
2035 /* Browsers */ 2035 /* Browsers */
2036 gaim_prefs_add_none("/gaim/gtk/browsers"); 2036 gaim_prefs_add_none("/gaim/gtk/browsers");
2037 gaim_prefs_add_int("/gaim/gtk/browsers/place", GAIM_BROWSER_DEFAULT); 2037 gaim_prefs_add_int("/gaim/gtk/browsers/place", GAIM_BROWSER_DEFAULT);
2038 gaim_prefs_add_string("/gaim/gtk/browsers/command", ""); 2038 gaim_prefs_add_path("/gaim/gtk/browsers/command", "");
2039 gaim_prefs_add_string("/gaim/gtk/browsers/browser", "mozilla"); 2039 gaim_prefs_add_string("/gaim/gtk/browsers/browser", "mozilla");
2040 #endif 2040 #endif
2041 2041
2042 /* Plugins */ 2042 /* Plugins */
2043 gaim_prefs_add_none("/gaim/gtk/plugins"); 2043 gaim_prefs_add_none("/gaim/gtk/plugins");
2044 gaim_prefs_add_path_list("/gaim/gtk/plugins/loaded", NULL); 2044 gaim_prefs_add_path_list("/gaim/gtk/plugins/loaded", NULL);
2045 2045
2046 /* File locations */ 2046 /* File locations */
2047 gaim_prefs_add_none("/gaim/gtk/filelocations"); 2047 gaim_prefs_add_none("/gaim/gtk/filelocations");
2048 gaim_prefs_add_string("/gaim/gtk/filelocations/last_save_folder", ""); 2048 gaim_prefs_add_path("/gaim/gtk/filelocations/last_save_folder", "");
2049 gaim_prefs_add_string("/gaim/gtk/filelocations/last_open_folder", ""); 2049 gaim_prefs_add_path("/gaim/gtk/filelocations/last_open_folder", "");
2050 gaim_prefs_add_string("/gaim/gtk/filelocations/last_icon_folder", ""); 2050 gaim_prefs_add_path("/gaim/gtk/filelocations/last_icon_folder", "");
2051 2051
2052 /* Smiley Themes */ 2052 /* Smiley Themes */
2053 gaim_prefs_add_none("/gaim/gtk/smileys"); 2053 gaim_prefs_add_none("/gaim/gtk/smileys");
2054 gaim_prefs_add_string("/gaim/gtk/smileys/theme", "Default"); 2054 gaim_prefs_add_string("/gaim/gtk/smileys/theme", "Default");
2055 2055