Sat, 22 Aug 2020 04:02:53 -0500
Remove purple_chat_user_[sg]et_ui_data.
Remove `purple_chat_user_[gs]et_ui_data`.
Remove `deleting-chat-user` signal. It's unused now, and just a substitute for a finalization notification.
Testing Done:
Compile only.
Reviewed at https://reviews.imfreedom.org/r/83/
| 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 | ||
|
40439
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
21 | #include <glib/gi18n-lib.h> |
|
e9838d634d5e
Make sure that internal.h can only be included by libpurple and split out some pieces to purpleprivate.h
Gary Kramlich <grim@reaperworld.com>
parents:
40360
diff
changeset
|
22 | |
|
40496
6941fece679b
phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
23 | #include <gtk/gtk.h> |
|
6941fece679b
phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
24 | |
|
6941fece679b
phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
25 | #include <purple.h> |
|
6941fece679b
phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents:
40439
diff
changeset
|
26 | |
|
40502
875489636847
pidgin.h phase3: create pidgin.h and force its usage
Gary Kramlich <grim@reaperworld.com>
parents:
40496
diff
changeset
|
27 | #include <pidgin.h> |
| 7421 | 28 | |
| 29 | #define CONTACT_PRIORITY_PLUGIN_ID "gtk-contact-priority" | |
| 30 | ||
| 31 | static void | |
|
39787
af7ae86ee287
Remove callback from account chooser constructor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39786
diff
changeset
|
32 | select_account(GtkWidget *chooser, gpointer data) |
| 7421 | 33 | { |
|
39787
af7ae86ee287
Remove callback from account chooser constructor.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39786
diff
changeset
|
34 | PurpleAccount *account = pidgin_account_chooser_get_selected(chooser); |
| 7421 | 35 | 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
|
36 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 37 | } |
| 38 | ||
| 39 | static void | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
40 | account_update(GtkWidget *widget, GtkWidget *chooser) |
| 7421 | 41 | { |
| 15884 | 42 | PurpleAccount *account = NULL; |
| 7421 | 43 | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
44 | account = pidgin_account_chooser_get_selected(chooser); |
| 15884 | 45 | purple_account_set_int(account, "score", gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
| 7421 | 46 | } |
| 47 | ||
| 48 | static void | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
49 | pref_update(GtkWidget *widget, char *pref) |
| 7421 | 50 | { |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
34477
diff
changeset
|
51 | if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_INT) |
| 15884 | 52 | purple_prefs_set_int(pref, gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
|
35378
5d9e2581005b
gtk-doc prep: *_get_type() functions are hidden as standard GType-returning funcs, so rename them.
Ankit Vani <a@nevitus.org>
parents:
34477
diff
changeset
|
53 | if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_BOOLEAN) |
| 15884 | 54 | purple_prefs_set_bool(pref, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); |
| 7421 | 55 | } |
| 56 | ||
| 15884 | 57 | static struct PurpleContactPriorityStatuses |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
58 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
59 | const char *id; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
60 | const char *description; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
61 | } const statuses[] = |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
62 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
63 | { "idle", N_("Buddy is idle") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
64 | { "away", N_("Buddy is away") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
65 | { "extended_away", N_("Buddy is \"extended\" away") }, |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
66 | #if 0 |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
67 | /* Not used yet. */ |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
68 | { "mobile", N_("Buddy is mobile") }, |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
69 | #endif |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
70 | { "offline", N_("Buddy is offline") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
71 | { NULL, NULL } |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
72 | }; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
73 | |
| 7421 | 74 | static GtkWidget * |
| 15884 | 75 | get_config_frame(PurplePlugin *plugin) |
| 7421 | 76 | { |
| 77 | GtkWidget *ret = NULL, *hbox = NULL, *frame = NULL, *vbox = NULL; | |
| 78 | GtkWidget *label = NULL, *spin = NULL, *check = NULL; | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
79 | GtkWidget *chooser = NULL; |
|
33133
9a31f084f259
Fix some merge errors.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
80 | GtkAdjustment *adj = NULL; |
| 7421 | 81 | GtkSizeGroup *sg = NULL; |
| 15884 | 82 | PurpleAccount *account = NULL; |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
83 | int i; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
84 | |
|
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
|
85 | gboolean last_match = purple_prefs_get_bool("/purple/contact/last_match"); |
| 7421 | 86 | |
| 87 | sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | |
| 88 | ||
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
89 | ret = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18); |
| 7421 | 90 | gtk_container_set_border_width(GTK_CONTAINER(ret), 12); |
| 91 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
92 | frame = pidgin_make_frame(ret, _("Point values to use when...")); |
| 7421 | 93 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
94 | vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 7421 | 95 | gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 96 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
97 | /* Status Spinboxes */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
98 | 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
|
99 | { |
|
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
|
100 | char *pref = g_strconcat("/purple/status/scores/", statuses[i].id, NULL); |
| 7421 | 101 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
102 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
103 | 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
|
104 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
105 | label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
106 | 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
|
107 | gtk_size_group_add_widget(sg, label); |
|
38007
3b971d2ecae1
Simplify gtk_label_set_[xy]align calls.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37990
diff
changeset
|
108 | gtk_label_set_xalign(GTK_LABEL(label), 0); |
|
3b971d2ecae1
Simplify gtk_label_set_[xy]align calls.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37990
diff
changeset
|
109 | gtk_label_set_yalign(GTK_LABEL(label), 0); |
|
14097
0c340861ab79
[gaim-migrate @ 16638]
Mark Doliner <markdoliner@pidgin.im>
parents:
12727
diff
changeset
|
110 | |
|
33172
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
111 | adj = GTK_ADJUSTMENT(gtk_adjustment_new(purple_prefs_get_int(pref), |
|
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
112 | -500, 500, 1, 1, 1)); |
|
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
113 | spin = gtk_spin_button_new(adj, 1, 0); |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
114 | 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
|
115 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 7421 | 116 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
117 | g_free(pref); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
118 | } |
| 7421 | 119 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
120 | /* Explanation */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
121 | label = gtk_label_new(NULL); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
122 | 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
|
123 | gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); |
| 7421 | 124 | |
| 125 | /* Last match */ | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
126 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
| 7421 | 127 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 128 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
129 | check = gtk_check_button_new_with_label(_("Use last buddy when scores are equal")); |
| 7421 | 130 | 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
|
131 | g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pref_update), "/purple/contact/last_match"); |
| 7421 | 132 | gtk_box_pack_start(GTK_BOX(hbox), check, FALSE, FALSE, 0); |
| 133 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
134 | frame = pidgin_make_frame(ret, _("Point values to use for account...")); |
| 7421 | 135 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
136 | vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 7421 | 137 | gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 138 | ||
| 139 | /* Account */ | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
140 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
| 7421 | 141 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 142 | ||
| 143 | /* make this here so I can use it in the option menu callback, we'll | |
| 144 | * actually set it up later */ | |
|
33172
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
145 | adj = GTK_ADJUSTMENT(gtk_adjustment_new(0, -500, 500, 1, 1, 1)); |
|
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
146 | spin = gtk_spin_button_new(adj, 1, 0); |
| 7421 | 147 | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
148 | chooser = pidgin_account_chooser_new(NULL, TRUE); |
|
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
149 | gtk_box_pack_start(GTK_BOX(hbox), chooser, FALSE, FALSE, 0); |
|
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
150 | g_signal_connect(chooser, "changed", G_CALLBACK(select_account), spin); |
| 7421 | 151 | |
| 152 | /* this is where we set up the spin button we made above */ | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
153 | account = pidgin_account_chooser_get_selected(chooser); |
| 7421 | 154 | 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
|
155 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 156 | gtk_spin_button_set_adjustment(GTK_SPIN_BUTTON(spin), GTK_ADJUSTMENT(adj)); |
| 157 | g_signal_connect(G_OBJECT(spin), "value-changed", | |
|
39796
b42070e4ea6e
Rename optmenu -> chooser in other files.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39793
diff
changeset
|
158 | G_CALLBACK(account_update), chooser); |
| 7421 | 159 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 160 | ||
| 161 | gtk_widget_show_all(ret); | |
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20288
diff
changeset
|
162 | g_object_unref(sg); |
| 7421 | 163 | |
| 164 | return ret; | |
| 165 | } | |
| 166 | ||
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
167 | static PidginPluginInfo * |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
168 | plugin_query(GError **error) |
| 7421 | 169 | { |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
170 | const gchar * const authors[] = { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
171 | "Etan Reisner <deryni@eden.rutgers.edu>", |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
172 | NULL |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
173 | }; |
| 7421 | 174 | |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
175 | return pidgin_plugin_info_new( |
|
36935
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
176 | "id", CONTACT_PRIORITY_PLUGIN_ID, |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
177 | "name", N_("Contact Priority"), |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
178 | "version", DISPLAY_VERSION, |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
179 | "category", N_("Utility"), |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
180 | "summary", N_("Allows for controlling the values associated with different buddy states."), |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
181 | "description", N_("Allows for changing the point values of idle/away/offline states for buddies in contact priority computations."), |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
182 | "authors", authors, |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
183 | "website", PURPLE_WEBSITE, |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
184 | "abi-version", PURPLE_ABI_VERSION, |
|
5384600e613c
Made finch and pidgin pref property names shorter: "gnt-pref-frame-cb" and "gtk-config-frame-cb"
Ankit Vani <a@nevitus.org>
parents:
36934
diff
changeset
|
185 | "gtk-config-frame-cb", get_config_frame, |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
186 | NULL |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
187 | ); |
| 7421 | 188 | } |
| 189 | ||
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
190 | static gboolean |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
191 | plugin_load(PurplePlugin *plugin, GError **error) |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
192 | { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
193 | return TRUE; |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
194 | } |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
195 | |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
196 | static gboolean |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
197 | plugin_unload(PurplePlugin *plugin, GError **error) |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
198 | { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
199 | return TRUE; |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
200 | } |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
201 | |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
202 | PURPLE_PLUGIN_INIT(contactpriority, plugin_query, plugin_load, plugin_unload); |