pidgin/pidginplugininfo.c

Mon, 23 May 2022 20:27:22 -0500

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 23 May 2022 20:27:22 -0500
changeset 41399
8dbb0f9596bb
parent 41138
dcfc73ec61c7
child 41479
3d2e114380f6
permissions
-rw-r--r--

Remove the ui-requirement property on PurplePluginInfo

This never worked right, even before gplugin. To read the value we had to have
already opened the library, which means all of its symbols were resolved. So
all this really did was stop a plugin for loading under a different UI. As we
move towards separate config directories for each UI this problem goes away.

Testing Done:
Ran and verified that plugins looked alright.

Reviewed at https://reviews.imfreedom.org/r/1462/

40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /* pidgin
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 *
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Pidgin is the legal property of its developers, whose names are too numerous
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 * to list here. Please refer to the COPYRIGHT file distributed with this
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * source distribution.
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 *
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * This program is free software; you can redistribute it and/or modify
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * it under the terms of the GNU General Public License as published by
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 * the Free Software Foundation; either version 2 of the License, or
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * (at your option) any later version.
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 *
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * This program is distributed in the hope that it will be useful,
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * GNU General Public License for more details.
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 *
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 * You should have received a copy of the GNU General Public License
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18 * along with this program; if not, write to the Free Software
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 */
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 #include "pidginplugininfo.h"
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
40496
6941fece679b phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents: 40224
diff changeset
23 #include "pidgincore.h"
6941fece679b phase2 of pidgin.h: move existing file to pidgincore.h
Gary Kramlich <grim@reaperworld.com>
parents: 40224
diff changeset
24
41138
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
25 enum {
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
26 PROP_0,
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
27 PROP_GTK_CONFIG_FRAME,
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
28 N_PROPERTIES,
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
29 };
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
30 static GParamSpec *properties[N_PROPERTIES] = {NULL, };
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
31
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32 struct _PidginPluginInfo {
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 PurplePluginInfo parent;
41138
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
34
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
35 PidginPluginInfoGetConfigFrameFunc get_config_frame;
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 };
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 /******************************************************************************
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 * GObject Implementation
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 *****************************************************************************/
41138
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
41 G_DEFINE_TYPE(PidginPluginInfo, pidgin_plugin_info, PURPLE_TYPE_PLUGIN_INFO)
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
42
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
43 static void
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
44 pidgin_plugin_info_get_property(GObject *obj, guint param_id, GValue *value,
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
45 GParamSpec *pspec)
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
46 {
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
47 PidginPluginInfo *info = PIDGIN_PLUGIN_INFO(obj);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
48
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
49 switch(param_id) {
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
50 case PROP_GTK_CONFIG_FRAME:
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
51 g_value_set_pointer(value, info->get_config_frame);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
52 break;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
53 default:
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
54 G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
55 break;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
56 }
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
57 }
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
58
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
59 static void
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
60 pidgin_plugin_info_set_property(GObject *obj, guint param_id,
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
61 const GValue *value, GParamSpec *pspec)
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
62 {
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
63 PidginPluginInfo *info = PIDGIN_PLUGIN_INFO(obj);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
64
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
65 switch(param_id) {
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
66 case PROP_GTK_CONFIG_FRAME:
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
67 info->get_config_frame = g_value_get_pointer(value);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
68 break;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
69 default:
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
70 G_OBJECT_WARN_INVALID_PROPERTY_ID(obj, param_id, pspec);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
71 break;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
72 }
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
73 }
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 static void
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 pidgin_plugin_info_init(PidginPluginInfo *info) {
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 }
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 static void
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 pidgin_plugin_info_class_init(PidginPluginInfoClass *klass) {
41138
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
81 GObjectClass *obj_class = G_OBJECT_CLASS(klass);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
82
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
83 obj_class->get_property = pidgin_plugin_info_get_property;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
84 obj_class->set_property = pidgin_plugin_info_set_property;
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
85
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
86 /**
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
87 * PidginPluginInfo::gtk-config-frame-cb:
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
88 *
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
89 * A function to call to create the configuration widget for the plugin.
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
90 */
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
91 properties[PROP_GTK_CONFIG_FRAME] = g_param_spec_pointer(
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
92 "gtk-config-frame-cb", "gtk-config-frame-cb",
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
93 "The callback function to create a configuration widget.",
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
94 G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS);
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
95
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
96 g_object_class_install_properties(obj_class, N_PROPERTIES, properties);
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 }
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 /******************************************************************************
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 * API
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 *****************************************************************************/
40894
80d9d7a73a60 Convert the Pidgin plugins to use GPLUGIN_NATIVE_PLUGIN_DECLARE
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
102 GPluginPluginInfo *
41138
dcfc73ec61c7 Add a gtk-config-frame-cb property to PidginPluginInfo as it used to be there and some plugins were still trying to set it.
Gary Kramlich <grim@reaperworld.com>
parents: 40894
diff changeset
103 pidgin_plugin_info_new(const char *first_property, ...) {
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 GObject *info;
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 va_list var_args;
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 /* at least ID is required */
40224
6b658d1458c8 Fix a handful of issues found in review
Gary Kramlich <grim@reaperworld.com>
parents: 40221
diff changeset
108 if (!first_property) {
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 return NULL;
40224
6b658d1458c8 Fix a handful of issues found in review
Gary Kramlich <grim@reaperworld.com>
parents: 40221
diff changeset
110 }
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 va_start(var_args, first_property);
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 info = g_object_new_valist(PIDGIN_TYPE_PLUGIN_INFO, first_property,
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 var_args);
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 va_end(var_args);
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116
40894
80d9d7a73a60 Convert the Pidgin plugins to use GPLUGIN_NATIVE_PLUGIN_DECLARE
Gary Kramlich <grim@reaperworld.com>
parents: 40496
diff changeset
117 return GPLUGIN_PLUGIN_INFO(info);
40221
e34d79e34f9f Move PidginPluginInfo to it's own file and remove references to the broken gtk config frame code. This is going to be overhauled in an upcomming commit
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118 }

mercurial