Wed, 21 Sep 2011 06:45:26 +0000
Apply conversation theme when opening the GTK conversation. All the
parsing stuff was moved out of the theme code and into the conversation
code.
Someone (not me!) needs to check the code I commented out and see if
we really need that stuff (and then port it to WebKit/styling).
We also need to determine where to place Template.html and the rest
of our (not-yet-written) default theme.
| 7421 | 1 | /* |
| 2 | * Contact priority settings plugin. | |
| 3 | * | |
| 4 | * Copyright (C) 2003 Etan Reisner, <deryni9@users.sourceforge.net>. | |
| 5 | * | |
| 6 | * This program is free software; you can redistribute it and/or | |
| 7 | * modify it under the terms of the GNU General Public License as | |
| 8 | * published by the Free Software Foundation; either version 2 of the | |
| 9 | * License, or (at your option) any later version. | |
| 10 | * | |
| 11 | * This program is distributed in the hope that it will be useful, | |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 14 | * GNU General Public License for more details. | |
| 15 | * | |
| 16 | * You should have received a copy of the GNU General Public License | |
| 17 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
16788
diff
changeset
|
18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301, USA. |
| 7421 | 19 | */ |
| 20 | ||
|
9821
d02520c59822
[gaim-migrate @ 10692]
Mark Doliner <markdoliner@pidgin.im>
parents:
8749
diff
changeset
|
21 | #include "internal.h" |
| 15577 | 22 | #include "pidgin.h" |
| 7421 | 23 | #include "gtkplugin.h" |
| 24 | #include "gtkutils.h" | |
| 25 | #include "prefs.h" | |
| 9954 | 26 | #include "version.h" |
| 7421 | 27 | |
| 28 | #define CONTACT_PRIORITY_PLUGIN_ID "gtk-contact-priority" | |
| 29 | ||
| 30 | static void | |
| 15884 | 31 | select_account(GtkWidget *widget, PurpleAccount *account, gpointer data) |
| 7421 | 32 | { |
| 33 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(data), | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
34 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 35 | } |
| 36 | ||
| 37 | static void | |
| 38 | account_update(GtkWidget *widget, GtkOptionMenu *optmenu) | |
| 39 | { | |
| 15884 | 40 | PurpleAccount *account = NULL; |
| 7421 | 41 | |
| 42 | account = g_object_get_data(G_OBJECT(gtk_menu_get_active(GTK_MENU(gtk_option_menu_get_menu(optmenu)))), "account"); | |
| 15884 | 43 | purple_account_set_int(account, "score", gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
| 7421 | 44 | } |
| 45 | ||
| 46 | static void | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
47 | pref_update(GtkWidget *widget, char *pref) |
| 7421 | 48 | { |
| 15884 | 49 | if (purple_prefs_get_type(pref) == PURPLE_PREF_INT) |
| 50 | purple_prefs_set_int(pref, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); | |
| 51 | if (purple_prefs_get_type(pref) == PURPLE_PREF_BOOLEAN) | |
| 52 | purple_prefs_set_bool(pref, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); | |
| 7421 | 53 | } |
| 54 | ||
| 15884 | 55 | static struct PurpleContactPriorityStatuses |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
56 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
57 | const char *id; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
58 | const char *description; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
59 | } const statuses[] = |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
60 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
61 | { "idle", N_("Buddy is idle") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
62 | { "away", N_("Buddy is away") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
63 | { "extended_away", N_("Buddy is \"extended\" away") }, |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
64 | #if 0 |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
65 | /* Not used yet. */ |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
66 | { "mobile", N_("Buddy is mobile") }, |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
67 | #endif |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
68 | { "offline", N_("Buddy is offline") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
69 | { NULL, NULL } |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
70 | }; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
71 | |
| 7421 | 72 | static GtkWidget * |
| 15884 | 73 | get_config_frame(PurplePlugin *plugin) |
| 7421 | 74 | { |
| 75 | GtkWidget *ret = NULL, *hbox = NULL, *frame = NULL, *vbox = NULL; | |
| 76 | GtkWidget *label = NULL, *spin = NULL, *check = NULL; | |
| 77 | GtkWidget *optmenu = NULL; | |
| 78 | GtkObject *adj = NULL; | |
| 79 | GtkSizeGroup *sg = NULL; | |
| 15884 | 80 | PurpleAccount *account = NULL; |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
81 | int i; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
82 | |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15884
diff
changeset
|
83 | gboolean last_match = purple_prefs_get_bool("/purple/contact/last_match"); |
| 7421 | 84 | |
| 85 | sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | |
| 86 | ||
| 87 | ret = gtk_vbox_new(FALSE, 18); | |
| 88 | gtk_container_set_border_width(GTK_CONTAINER(ret), 12); | |
| 89 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
90 | frame = pidgin_make_frame(ret, _("Point values to use when...")); |
| 7421 | 91 | |
| 92 | vbox = gtk_vbox_new(FALSE, 5); | |
| 93 | gtk_container_add(GTK_CONTAINER(frame), vbox); | |
| 94 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
95 | /* Status Spinboxes */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
96 | for (i = 0 ; statuses[i].id != NULL && statuses[i].description != NULL ; i++) |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
97 | { |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15884
diff
changeset
|
98 | char *pref = g_strconcat("/purple/status/scores/", statuses[i].id, NULL); |
| 7421 | 99 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
100 | hbox = gtk_hbox_new(FALSE, 5); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
101 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
|
14097
0c340861ab79
[gaim-migrate @ 16638]
Mark Doliner <markdoliner@pidgin.im>
parents:
12727
diff
changeset
|
102 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
103 | label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
104 | gtk_box_pack_start(GTK_BOX(hbox), label, FALSE, FALSE, 0); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
105 | gtk_size_group_add_widget(sg, label); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
106 | gtk_misc_set_alignment(GTK_MISC(label), 0, 0); |
|
14097
0c340861ab79
[gaim-migrate @ 16638]
Mark Doliner <markdoliner@pidgin.im>
parents:
12727
diff
changeset
|
107 | |
| 15884 | 108 | adj = gtk_adjustment_new(purple_prefs_get_int(pref), -500, 500, 1, 1, 1); |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
109 | spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
110 | g_signal_connect(G_OBJECT(spin), "value-changed", G_CALLBACK(pref_update), pref); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
111 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 7421 | 112 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
113 | g_free(pref); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
114 | } |
| 7421 | 115 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
116 | /* Explanation */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
117 | label = gtk_label_new(NULL); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
118 | gtk_label_set_markup(GTK_LABEL(label), _("The buddy with the <i>largest score</i> is the buddy who will have priority in the contact.\n")); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
119 | gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); |
| 7421 | 120 | |
| 121 | /* Last match */ | |
| 122 | hbox = gtk_hbox_new(FALSE, 5); | |
| 123 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | |
| 124 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
125 | check = gtk_check_button_new_with_label(_("Use last buddy when scores are equal")); |
| 7421 | 126 | gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(check), last_match); |
|
16478
19107605c565
Works for me! Renames prefs: /core to /purple, /gaim/gtk to /pidgin, /gaim/gnt to /finch
Sean Egan <seanegan@pidgin.im>
parents:
15884
diff
changeset
|
127 | g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pref_update), "/purple/contact/last_match"); |
| 7421 | 128 | gtk_box_pack_start(GTK_BOX(hbox), check, FALSE, FALSE, 0); |
| 129 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
130 | frame = pidgin_make_frame(ret, _("Point values to use for account...")); |
| 7421 | 131 | |
| 132 | vbox = gtk_vbox_new(FALSE, 5); | |
| 133 | gtk_container_add(GTK_CONTAINER(frame), vbox); | |
| 134 | ||
| 135 | /* Account */ | |
| 136 | hbox = gtk_hbox_new(FALSE, 5); | |
| 137 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); | |
| 138 | ||
| 139 | /* make this here so I can use it in the option menu callback, we'll | |
| 140 | * actually set it up later */ | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
141 | adj = gtk_adjustment_new(0, -500, 500, 1, 1, 1); |
| 7421 | 142 | spin = gtk_spin_button_new((GtkAdjustment *)adj, 1, 0); |
| 143 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
144 | optmenu = pidgin_account_option_menu_new(NULL, TRUE, |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
145 | G_CALLBACK(select_account), |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
146 | NULL, spin); |
| 7421 | 147 | gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0); |
| 148 | ||
| 149 | /* this is where we set up the spin button we made above */ | |
| 150 | account = g_object_get_data(G_OBJECT(gtk_menu_get_active(GTK_MENU(gtk_option_menu_get_menu(GTK_OPTION_MENU(optmenu))))), | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
151 | "account"); |
| 7421 | 152 | gtk_spin_button_set_value(GTK_SPIN_BUTTON(spin), |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
153 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 154 | gtk_spin_button_set_adjustment(GTK_SPIN_BUTTON(spin), GTK_ADJUSTMENT(adj)); |
| 155 | g_signal_connect(G_OBJECT(spin), "value-changed", | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
156 | G_CALLBACK(account_update), optmenu); |
| 7421 | 157 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 158 | ||
| 159 | gtk_widget_show_all(ret); | |
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20288
diff
changeset
|
160 | g_object_unref(sg); |
| 7421 | 161 | |
| 162 | return ret; | |
| 163 | } | |
| 164 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
165 | static PidginPluginUiInfo ui_info = |
| 7421 | 166 | { |
|
12727
05ed142fbbe6
[gaim-migrate @ 15071]
Richard Laager <rlaager@pidgin.im>
parents:
12595
diff
changeset
|
167 | get_config_frame, |
|
16788
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
168 | 0, /* page_num (Reserved) */ |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
169 | /* Padding */ |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
170 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
171 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
172 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
173 | NULL |
| 7421 | 174 | }; |
| 175 | ||
| 15884 | 176 | static PurplePluginInfo info = |
| 7421 | 177 | { |
| 15884 | 178 | PURPLE_PLUGIN_MAGIC, |
| 179 | PURPLE_MAJOR_VERSION, | |
| 180 | PURPLE_MINOR_VERSION, | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
181 | PURPLE_PLUGIN_STANDARD, /**< type */ |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
182 | PIDGIN_PLUGIN_TYPE, /**< ui_requirement */ |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
183 | 0, /**< flags */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
184 | NULL, /**< dependencies */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
185 | PURPLE_PRIORITY_DEFAULT, /**< priority */ |
| 7421 | 186 | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
187 | CONTACT_PRIORITY_PLUGIN_ID, /**< id */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
188 | N_("Contact Priority"), /**< name */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
189 | DISPLAY_VERSION, /**< version */ |
| 7421 | 190 | /**< summary */ |
| 191 | N_("Allows for controlling the values associated with different buddy states."), | |
| 192 | /**< description */ | |
| 193 | N_("Allows for changing the point values of idle/away/offline states for buddies in contact priority computations."), | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
194 | "Etan Reisner <deryni@eden.rutgers.edu>", /**< author */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
195 | PURPLE_WEBSITE, /**< homepage */ |
| 7421 | 196 | |
|
26822
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
197 | NULL, /**< load */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
198 | NULL, /**< unload */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
199 | NULL, /**< destroy */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
200 | &ui_info, /**< ui_info */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
201 | NULL, /**< extra_info */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
202 | NULL, /**< prefs_info */ |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
203 | NULL, /**< actions */ |
|
16788
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
204 | |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
205 | /* padding */ |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
206 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
207 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
208 | NULL, |
|
417d0e8d6f3f
Add padding to structs to fix compiler warnings
Stu Tomlinson <nosnilmot@pidgin.im>
parents:
16478
diff
changeset
|
209 | NULL |
| 7421 | 210 | }; |
| 211 | ||
| 212 | static void | |
| 15884 | 213 | init_plugin(PurplePlugin *plugin) |
| 7421 | 214 | { |
| 215 | } | |
| 216 | ||
| 15884 | 217 | PURPLE_INIT_PLUGIN(contactpriority, init_plugin, info) |