Sat, 21 Aug 2004 15:05:45 +0000
[gaim-migrate @ 10669]
On Fri, 2004-08-20 at 23:57, Tim Ringenbach wrote:
> > relative buddy icon paths instead of absolute ones from nosnilmot. this
> > should save some headaches migrating a ~/.gaim around
> I think you broke something here. On start up I notice all buddy icons
> are fetched again, and they only show up in my buddy list, never my
> conversation window.
I did break something. I think the logic of "if the old file doesn't
exist, then delete the new one instead" when removing old icons isn't
exactly what I meant to do.
You were also correct to point out that prpls might use them directly -
oscar does.
Patch attached to fix both cases.
Regards,
Stu.
committer: Luke Schierer <lschiere@pidgin.im>
| 5530 | 1 | /** |
| 2 | * @file gtkprefs.h GTK+ Preferences | |
| 3 | * @ingroup gtkui | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 8046 | 7 | * Gaim is the legal property of its developers, whose names are too numerous |
| 8 | * to list here. Please refer to the COPYRIGHT file distributed with this | |
| 9 | * source distribution. | |
| 5530 | 10 | * |
| 11 | * This program is free software; you can redistribute it and/or modify | |
| 12 | * it under the terms of the GNU General Public License as published by | |
| 13 | * the Free Software Foundation; either version 2 of the License, or | |
| 14 | * (at your option) any later version. | |
| 15 | * | |
| 16 | * This program is distributed in the hope that it will be useful, | |
| 17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 19 | * GNU General Public License for more details. | |
| 20 | * | |
| 21 | * You should have received a copy of the GNU General Public License | |
| 22 | * along with this program; if not, write to the Free Software | |
| 23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 24 | * | |
| 25 | */ | |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9422
diff
changeset
|
26 | #ifndef _GAIM_GTKPREFS_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9422
diff
changeset
|
27 | #define _GAIM_GTKPREFS_H_ |
|
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9422
diff
changeset
|
28 | |
| 7976 | 29 | #include "prefs.h" |
| 5530 | 30 | |
| 31 | /* XXX These should go. */ | |
| 32 | extern GtkListStore *prefs_away_store; | |
| 33 | extern GtkWidget *prefs_away_menu; | |
| 34 | extern GtkWidget *pref_fg_picture; | |
| 35 | extern GtkWidget *pref_bg_picture; | |
| 36 | ||
| 37 | /** | |
| 38 | * Initializes all UI-specific preferences. | |
| 39 | */ | |
| 40 | void gaim_gtk_prefs_init(void); | |
| 41 | ||
| 42 | /** | |
| 43 | * Shows the preferences dialog. | |
| 44 | */ | |
| 45 | void gaim_gtk_prefs_show(void); | |
| 46 | ||
| 47 | /** | |
| 48 | * Initializes the default away menu. | |
| 49 | * | |
| 50 | * @todo This should be moved or renamed or something? | |
| 51 | */ | |
| 52 | void default_away_menu_init(GtkWidget *); | |
| 53 | ||
| 54 | void apply_font_dlg(GtkWidget *, GtkWidget *); | |
| 55 | void apply_color_dlg(GtkWidget *, gpointer); | |
| 56 | void destroy_colorsel(GtkWidget *, gpointer); | |
| 57 | ||
| 7976 | 58 | /** |
| 59 | * Add a new checkbox for a boolean preference | |
| 60 | * | |
| 61 | * @param title The text to be displayed as the checkbox label | |
| 62 | * @param key The key of the gaim bool pref that will be represented by the checkbox | |
| 63 | * @param page The page to which the new checkbox will be added | |
| 64 | */ | |
| 7987 | 65 | GtkWidget *gaim_gtk_prefs_checkbox(const char *title, const char *key, |
| 66 | GtkWidget *page); | |
| 7976 | 67 | |
| 68 | /** | |
| 69 | * Add a new spin button representing an int preference | |
| 70 | * | |
| 71 | * @param page The page to which the spin button will be added | |
| 72 | * @param title The text to be displayed as the spin button label | |
| 7987 | 73 | * @param key The key of the int pref that will be represented by the spin button |
| 7976 | 74 | * @param min The minimum value of the spin button |
| 75 | * @param max The maximum value of the spin button | |
| 76 | * @param sg If not NULL, the size group to which the spin button will be added | |
|
8238
f7d22f952df5
[gaim-migrate @ 8961]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
77 | * @return An hbox containing both the label and the spinner. Can be |
|
8735
01248ea222d3
[gaim-migrate @ 9490]
Jonathan Champ <royanee@users.sourceforge.net>
parents:
8713
diff
changeset
|
78 | * used to set the widgets to sensitive or insensitive based on the |
|
8238
f7d22f952df5
[gaim-migrate @ 8961]
Mark Doliner <markdoliner@pidgin.im>
parents:
8046
diff
changeset
|
79 | * value of a checkbox. |
| 7976 | 80 | */ |
| 7987 | 81 | GtkWidget *gaim_gtk_prefs_labeled_spin_button(GtkWidget *page, |
| 82 | const gchar *title, char *key, int min, int max, GtkSizeGroup *sg); | |
| 7976 | 83 | |
| 84 | /** | |
| 9422 | 85 | * Add a new entry representing a string preference |
| 86 | * | |
| 87 | * @param page The page to which the entry will be added | |
| 88 | * @param title The text to be displayed as the entry label | |
| 89 | * @param key The key of the string pref that will be represented by the entry | |
| 90 | * @param sg If not NULL, the size group to which the entry will be added | |
| 91 | * | |
| 92 | * @return An hbox containing both the label and the entry. Can be used to set | |
| 93 | * the widgets to sensitive or insensitive based on the value of a | |
| 94 | * checkbox. | |
| 95 | */ | |
| 96 | GtkWidget *gaim_gtk_prefs_labeled_entry(GtkWidget *page, const gchar *title, | |
| 97 | char *key, GtkSizeGroup *sg); | |
| 98 | ||
| 99 | /** | |
| 7976 | 100 | * Add a new dropdown representing a preference of the specified type |
| 101 | * | |
| 7978 | 102 | * @param page The page to which the dropdown will be added |
| 103 | * @param title The text to be displayed as the dropdown label | |
| 7976 | 104 | * @param type The type of preference to be stored in the generated dropdown |
| 7987 | 105 | * @param key The key of the pref that will be represented by the dropdown |
| 8713 | 106 | * @param ... The choices to be added to the dropdown, choices should be |
| 107 | * paired as label/value | |
| 7976 | 108 | */ |
| 7987 | 109 | GtkWidget *gaim_gtk_prefs_dropdown(GtkWidget *page, const gchar *title, |
| 110 | GaimPrefType type, const char *key, ...); | |
| 7976 | 111 | |
| 112 | /** | |
| 113 | * Add a new dropdown representing a preference of the specified type | |
| 114 | * | |
| 7978 | 115 | * @param page The page to which the dropdown will be added |
| 116 | * @param title The text to be displayed as the dropdown label | |
| 7987 | 117 | * @param type The type of preference to be stored in the dropdown |
| 118 | * @param key The key of the pref that will be represented by the dropdown | |
| 8713 | 119 | * @param menuitems The choices to be added to the dropdown, choices should |
| 120 | * be paired as label/value | |
| 7976 | 121 | */ |
| 7987 | 122 | GtkWidget *gaim_gtk_prefs_dropdown_from_list(GtkWidget *page, |
| 123 | const gchar * title, GaimPrefType type, const char *key, | |
| 124 | GList *menuitems); | |
| 7976 | 125 | |
|
8905
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
126 | /** |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
127 | * Rename legacy prefs and delete some that no longer exist. |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
128 | */ |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
129 | void gaim_gtk_prefs_update_old(); |
|
cedfa637389f
[gaim-migrate @ 9674]
Mark Doliner <markdoliner@pidgin.im>
parents:
8900
diff
changeset
|
130 | |
|
9713
bb37562302a1
[gaim-migrate @ 10574]
Mark Doliner <markdoliner@pidgin.im>
parents:
9422
diff
changeset
|
131 | #endif /* _GAIM_GTKPREFS_H_ */ |