Sun, 04 Sep 2016 00:36:05 -0400
Replace the deprecated gtk_misc_set_alignment function.
Where available, use the new gtk_label_set_[xy]align. Otherwise, set
halign and valign on the widget.
| 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" |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
23 | #include "gtk3compat.h" |
| 7421 | 24 | #include "gtkplugin.h" |
| 25 | #include "gtkutils.h" | |
| 26 | #include "prefs.h" | |
| 9954 | 27 | #include "version.h" |
| 7421 | 28 | |
| 29 | #define CONTACT_PRIORITY_PLUGIN_ID "gtk-contact-priority" | |
| 30 | ||
| 31 | static void | |
| 15884 | 32 | select_account(GtkWidget *widget, PurpleAccount *account, gpointer data) |
| 7421 | 33 | { |
| 34 | 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
|
35 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 36 | } |
| 37 | ||
| 38 | static void | |
|
32388
9fc7219b95cc
Apply final changes from nix_nix's patch.
Gabriel Schulhof <nix@go-nix.ca>
parents:
26822
diff
changeset
|
39 | account_update(GtkWidget *widget, GtkWidget *optmenu) |
| 7421 | 40 | { |
| 15884 | 41 | PurpleAccount *account = NULL; |
| 7421 | 42 | |
|
32388
9fc7219b95cc
Apply final changes from nix_nix's patch.
Gabriel Schulhof <nix@go-nix.ca>
parents:
26822
diff
changeset
|
43 | account = pidgin_account_option_menu_get_selected(optmenu); |
| 15884 | 44 | purple_account_set_int(account, "score", gtk_spin_button_get_value_as_int(GTK_SPIN_BUTTON(widget))); |
| 7421 | 45 | } |
| 46 | ||
| 47 | static void | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
48 | pref_update(GtkWidget *widget, char *pref) |
| 7421 | 49 | { |
|
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
|
50 | if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_INT) |
| 15884 | 51 | 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
|
52 | if (purple_prefs_get_pref_type(pref) == PURPLE_PREF_BOOLEAN) |
| 15884 | 53 | purple_prefs_set_bool(pref, gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(widget))); |
| 7421 | 54 | } |
| 55 | ||
| 15884 | 56 | static struct PurpleContactPriorityStatuses |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
57 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
58 | const char *id; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
59 | const char *description; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
60 | } const statuses[] = |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
61 | { |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
62 | { "idle", N_("Buddy is idle") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
63 | { "away", N_("Buddy is away") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
64 | { "extended_away", N_("Buddy is \"extended\" away") }, |
|
12595
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
65 | #if 0 |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
66 | /* Not used yet. */ |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
67 | { "mobile", N_("Buddy is mobile") }, |
|
8108c22aa723
[gaim-migrate @ 14925]
Richard Laager <rlaager@pidgin.im>
parents:
12164
diff
changeset
|
68 | #endif |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
69 | { "offline", N_("Buddy is offline") }, |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
70 | { NULL, NULL } |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
71 | }; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
72 | |
| 7421 | 73 | static GtkWidget * |
| 15884 | 74 | get_config_frame(PurplePlugin *plugin) |
| 7421 | 75 | { |
| 76 | GtkWidget *ret = NULL, *hbox = NULL, *frame = NULL, *vbox = NULL; | |
| 77 | GtkWidget *label = NULL, *spin = NULL, *check = NULL; | |
| 78 | GtkWidget *optmenu = NULL; | |
|
33133
9a31f084f259
Fix some merge errors.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
79 | GtkAdjustment *adj = NULL; |
| 7421 | 80 | GtkSizeGroup *sg = NULL; |
| 15884 | 81 | PurpleAccount *account = NULL; |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
82 | int i; |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
83 | |
|
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
|
84 | gboolean last_match = purple_prefs_get_bool("/purple/contact/last_match"); |
| 7421 | 85 | |
| 86 | sg = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); | |
| 87 | ||
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
88 | ret = gtk_box_new(GTK_ORIENTATION_VERTICAL, 18); |
| 7421 | 89 | gtk_container_set_border_width(GTK_CONTAINER(ret), 12); |
| 90 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
91 | frame = pidgin_make_frame(ret, _("Point values to use when...")); |
| 7421 | 92 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
93 | vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 7421 | 94 | gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 95 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
96 | /* Status Spinboxes */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
97 | 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
|
98 | { |
|
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
|
99 | char *pref = g_strconcat("/purple/status/scores/", statuses[i].id, NULL); |
| 7421 | 100 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
101 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
102 | 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
|
103 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
104 | label = gtk_label_new_with_mnemonic(_(statuses[i].description)); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
105 | 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
|
106 | gtk_size_group_add_widget(sg, label); |
|
37990
710f725725a8
Replace the deprecated gtk_misc_set_alignment function.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
37109
diff
changeset
|
107 | gtk_label_set_alignment(GTK_LABEL(label), 0, 0); |
|
14097
0c340861ab79
[gaim-migrate @ 16638]
Mark Doliner <markdoliner@pidgin.im>
parents:
12727
diff
changeset
|
108 | |
|
33172
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
109 | 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
|
110 | -500, 500, 1, 1, 1)); |
|
9fb9057fc55c
Fix warnings about GtkAdjustments on GTK+2.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
33133
diff
changeset
|
111 | spin = gtk_spin_button_new(adj, 1, 0); |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
112 | 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
|
113 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 7421 | 114 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
115 | g_free(pref); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
116 | } |
| 7421 | 117 | |
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
118 | /* Explanation */ |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
119 | label = gtk_label_new(NULL); |
|
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
120 | 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
|
121 | gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); |
| 7421 | 122 | |
| 123 | /* Last match */ | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
124 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
| 7421 | 125 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 126 | ||
|
12164
b39dc890f640
[gaim-migrate @ 14465]
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
10729
diff
changeset
|
127 | check = gtk_check_button_new_with_label(_("Use last buddy when scores are equal")); |
| 7421 | 128 | 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
|
129 | g_signal_connect(G_OBJECT(check), "toggled", G_CALLBACK(pref_update), "/purple/contact/last_match"); |
| 7421 | 130 | gtk_box_pack_start(GTK_BOX(hbox), check, FALSE, FALSE, 0); |
| 131 | ||
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
132 | frame = pidgin_make_frame(ret, _("Point values to use for account...")); |
| 7421 | 133 | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
134 | vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 5); |
| 7421 | 135 | gtk_container_add(GTK_CONTAINER(frame), vbox); |
| 136 | ||
| 137 | /* Account */ | |
|
35526
ed1be305c985
Fix gtk_[hv]box_new gtk3 deprecation warnings
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35378
diff
changeset
|
138 | hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 5); |
| 7421 | 139 | gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, FALSE, 0); |
| 140 | ||
| 141 | /* make this here so I can use it in the option menu callback, we'll | |
| 142 | * 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
|
143 | 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
|
144 | spin = gtk_spin_button_new(adj, 1, 0); |
| 7421 | 145 | |
|
15562
8c8249fe5e3c
gaim_gtk to pidgin. I hope
Sean Egan <seanegan@pidgin.im>
parents:
15435
diff
changeset
|
146 | 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
|
147 | G_CALLBACK(select_account), |
|
968d0220acc6
The alignment in this file is quite odd.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
20289
diff
changeset
|
148 | NULL, spin); |
| 7421 | 149 | gtk_box_pack_start(GTK_BOX(hbox), optmenu, FALSE, FALSE, 0); |
| 150 | ||
| 151 | /* this is where we set up the spin button we made above */ | |
|
32388
9fc7219b95cc
Apply final changes from nix_nix's patch.
Gabriel Schulhof <nix@go-nix.ca>
parents:
26822
diff
changeset
|
152 | account = pidgin_account_option_menu_get_selected(optmenu); |
| 7421 | 153 | 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
|
154 | (gdouble)purple_account_get_int(account, "score", 0)); |
| 7421 | 155 | gtk_spin_button_set_adjustment(GTK_SPIN_BUTTON(spin), GTK_ADJUSTMENT(adj)); |
| 156 | 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
|
157 | G_CALLBACK(account_update), optmenu); |
| 7421 | 158 | gtk_box_pack_start(GTK_BOX(hbox), spin, FALSE, FALSE, 0); |
| 159 | ||
| 160 | gtk_widget_show_all(ret); | |
|
20289
5c844288fbec
applied changes from 32f31e981f0618a4167aa98bcc22c2dab13d1550
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
20288
diff
changeset
|
161 | g_object_unref(sg); |
| 7421 | 162 | |
| 163 | return ret; | |
| 164 | } | |
| 165 | ||
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
166 | static PidginPluginInfo * |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
167 | plugin_query(GError **error) |
| 7421 | 168 | { |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
169 | const gchar * const authors[] = { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
170 | "Etan Reisner <deryni@eden.rutgers.edu>", |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
171 | NULL |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
172 | }; |
| 7421 | 173 | |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
174 | 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
|
175 | "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
|
176 | "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
|
177 | "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
|
178 | "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
|
179 | "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
|
180 | "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
|
181 | "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
|
182 | "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
|
183 | "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
|
184 | "gtk-config-frame-cb", get_config_frame, |
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
185 | NULL |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
186 | ); |
| 7421 | 187 | } |
| 188 | ||
|
36755
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
189 | static gboolean |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
190 | plugin_load(PurplePlugin *plugin, GError **error) |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
191 | { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
192 | return TRUE; |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
193 | } |
|
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 | static gboolean |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
196 | plugin_unload(PurplePlugin *plugin, GError **error) |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
197 | { |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
198 | return TRUE; |
|
4826ec4c6ac5
More pidgin plugins to new API
Ankit Vani <a@nevitus.org>
parents:
33172
diff
changeset
|
199 | } |
|
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 | PURPLE_PLUGIN_INIT(contactpriority, plugin_query, plugin_load, plugin_unload); |