Mercurial > pidgin.yaz
comparison pidgin/gtkutils.c @ 16062:07554cc5d090
Rename /purple/gtk preferences back to /gaim/gtk to allow for smooth upgrades
until someone comes up with something cleverererer
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Wed, 11 Apr 2007 13:38:05 +0000 |
parents | eae8e127e4fb |
children | 247e421c4fa6 |
comparison
equal
deleted
inserted
replaced
16061:3b86ad370861 | 16062:07554cc5d090 |
---|---|
159 imhtml = gtk_imhtml_new(NULL, NULL); | 159 imhtml = gtk_imhtml_new(NULL, NULL); |
160 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable); | 160 gtk_imhtml_set_editable(GTK_IMHTML(imhtml), editable); |
161 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); | 161 gtk_imhtml_set_format_functions(GTK_IMHTML(imhtml), GTK_IMHTML_ALL ^ GTK_IMHTML_IMAGE); |
162 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(imhtml), GTK_WRAP_WORD_CHAR); | 162 gtk_text_view_set_wrap_mode(GTK_TEXT_VIEW(imhtml), GTK_WRAP_WORD_CHAR); |
163 #ifdef USE_GTKSPELL | 163 #ifdef USE_GTKSPELL |
164 if (editable && purple_prefs_get_bool("/purple/gtk/conversations/spellcheck")) | 164 if (editable && purple_prefs_get_bool(PIDGIN_PREFS_ROOT "/conversations/spellcheck")) |
165 pidgin_setup_gtkspell(GTK_TEXT_VIEW(imhtml)); | 165 pidgin_setup_gtkspell(GTK_TEXT_VIEW(imhtml)); |
166 #endif | 166 #endif |
167 gtk_widget_show(imhtml); | 167 gtk_widget_show(imhtml); |
168 | 168 |
169 if (editable) { | 169 if (editable) { |
2207 } | 2207 } |
2208 | 2208 |
2209 filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->icon_filesel)); | 2209 filename = gtk_file_chooser_get_filename(GTK_FILE_CHOOSER(dialog->icon_filesel)); |
2210 current_folder = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog->icon_filesel)); | 2210 current_folder = gtk_file_chooser_get_current_folder(GTK_FILE_CHOOSER(dialog->icon_filesel)); |
2211 if (current_folder != NULL) { | 2211 if (current_folder != NULL) { |
2212 purple_prefs_set_path("/purple/gtk/filelocations/last_icon_folder", current_folder); | 2212 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/filelocations/last_icon_folder", current_folder); |
2213 g_free(current_folder); | 2213 g_free(current_folder); |
2214 } | 2214 } |
2215 | 2215 |
2216 #else /* FILECHOOSER */ | 2216 #else /* FILECHOOSER */ |
2217 static void | 2217 static void |
2230 return; | 2230 return; |
2231 } | 2231 } |
2232 | 2232 |
2233 current_folder = g_path_get_dirname(filename); | 2233 current_folder = g_path_get_dirname(filename); |
2234 if (current_folder != NULL) { | 2234 if (current_folder != NULL) { |
2235 purple_prefs_set_path("/purple/gtk/filelocations/last_icon_folder", current_folder); | 2235 purple_prefs_set_path(PIDGIN_PREFS_ROOT "/filelocations/last_icon_folder", current_folder); |
2236 g_free(current_folder); | 2236 g_free(current_folder); |
2237 } | 2237 } |
2238 | 2238 |
2239 #endif /* FILECHOOSER */ | 2239 #endif /* FILECHOOSER */ |
2240 if (dialog->callback) | 2240 if (dialog->callback) |
2327 if (dialog->icon_filesel != NULL) { | 2327 if (dialog->icon_filesel != NULL) { |
2328 gtk_window_present(GTK_WINDOW(dialog->icon_filesel)); | 2328 gtk_window_present(GTK_WINDOW(dialog->icon_filesel)); |
2329 return NULL; | 2329 return NULL; |
2330 } | 2330 } |
2331 | 2331 |
2332 current_folder = purple_prefs_get_path("/purple/gtk/filelocations/last_icon_folder"); | 2332 current_folder = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/filelocations/last_icon_folder"); |
2333 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ | 2333 #if GTK_CHECK_VERSION(2,4,0) /* FILECHOOSER */ |
2334 | 2334 |
2335 dialog->icon_filesel = gtk_file_chooser_dialog_new(_("Buddy Icon"), | 2335 dialog->icon_filesel = gtk_file_chooser_dialog_new(_("Buddy Icon"), |
2336 parent, | 2336 parent, |
2337 GTK_FILE_CHOOSER_ACTION_OPEN, | 2337 GTK_FILE_CHOOSER_ACTION_OPEN, |
2938 g_snprintf(label_text, sizeof(label_text), | 2938 g_snprintf(label_text, sizeof(label_text), |
2939 "<span weight=\"bold\" size=\"smaller\">%s</span>%s<span size=\"smaller\">%s</span>", | 2939 "<span weight=\"bold\" size=\"smaller\">%s</span>%s<span size=\"smaller\">%s</span>", |
2940 primary_esc, secondary ? "\n" : "", secondary?secondary_esc:""); | 2940 primary_esc, secondary ? "\n" : "", secondary?secondary_esc:""); |
2941 g_free(primary_esc); | 2941 g_free(primary_esc); |
2942 label = gtk_label_new(NULL); | 2942 label = gtk_label_new(NULL); |
2943 gtk_widget_set_size_request(label, purple_prefs_get_int("/purple/gtk/blist/width")-25,-1); | 2943 gtk_widget_set_size_request(label, purple_prefs_get_int(PIDGIN_PREFS_ROOT "/blist/width")-25,-1); |
2944 gtk_label_set_markup(GTK_LABEL(label), label_text); | 2944 gtk_label_set_markup(GTK_LABEL(label), label_text); |
2945 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); | 2945 gtk_label_set_line_wrap(GTK_LABEL(label), TRUE); |
2946 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); | 2946 gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
2947 gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); | 2947 gtk_box_pack_start(GTK_BOX(hbox), label, TRUE, TRUE, 0); |
2948 | 2948 |