| 34 #define PIDGIN_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_PLUGIN_INFO, PidginPluginInfoClass)) |
34 #define PIDGIN_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), PIDGIN_TYPE_PLUGIN_INFO, PidginPluginInfoClass)) |
| 35 #define PIDGIN_IS_PLUGIN_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_PLUGIN_INFO)) |
35 #define PIDGIN_IS_PLUGIN_INFO(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj), PIDGIN_TYPE_PLUGIN_INFO)) |
| 36 #define PIDGIN_IS_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_PLUGIN_INFO)) |
36 #define PIDGIN_IS_PLUGIN_INFO_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE((klass), PIDGIN_TYPE_PLUGIN_INFO)) |
| 37 #define PIDGIN_PLUGIN_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_PLUGIN_INFO, PidginPluginInfoClass)) |
37 #define PIDGIN_PLUGIN_INFO_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), PIDGIN_TYPE_PLUGIN_INFO, PidginPluginInfoClass)) |
| 38 |
38 |
| 39 /** @copydoc _PidginPluginInfo */ |
|
| 40 typedef struct _PidginPluginInfo PidginPluginInfo; |
39 typedef struct _PidginPluginInfo PidginPluginInfo; |
| 41 /** @copydoc _PidginPluginInfoClass */ |
|
| 42 typedef struct _PidginPluginInfoClass PidginPluginInfoClass; |
40 typedef struct _PidginPluginInfoClass PidginPluginInfoClass; |
| 43 |
41 |
| 44 typedef GtkWidget *(*PidginPluginConfigFrameCb)(PurplePlugin *); |
42 typedef GtkWidget *(*PidginPluginConfigFrameCb)(PurplePlugin *); |
| 45 |
43 |
| 46 /** |
44 /** |
| |
45 * PidginPluginInfo: |
| |
46 * |
| 47 * Extends #PurplePluginInfo to hold UI information for pidgin. |
47 * Extends #PurplePluginInfo to hold UI information for pidgin. |
| 48 */ |
48 */ |
| 49 struct _PidginPluginInfo { |
49 struct _PidginPluginInfo { |
| 50 PurplePluginInfo parent; |
50 PurplePluginInfo parent; |
| 51 }; |
51 }; |
| 66 }; |
66 }; |
| 67 |
67 |
| 68 G_BEGIN_DECLS |
68 G_BEGIN_DECLS |
| 69 |
69 |
| 70 /** |
70 /** |
| |
71 * pidgin_plugin_info_get_type: |
| |
72 * |
| 71 * Returns the GType for the PidginPluginInfo object. |
73 * Returns the GType for the PidginPluginInfo object. |
| 72 */ |
74 */ |
| 73 GType pidgin_plugin_info_get_type(void); |
75 GType pidgin_plugin_info_get_type(void); |
| 74 |
76 |
| 75 /** |
77 /** |
| |
78 * pidgin_plugin_info_new: |
| |
79 * @first_property: The first property name |
| |
80 * @...: The value of the first property, followed optionally by more |
| |
81 * name/value pairs, followed by %NULL |
| |
82 * |
| 76 * Creates a new #PidginPluginInfo instance to be returned from |
83 * Creates a new #PidginPluginInfo instance to be returned from |
| 77 * gplugin_plugin_query() of a pidgin plugin, using the provided name/value |
84 * gplugin_plugin_query() of a pidgin plugin, using the provided name/value |
| 78 * pairs. |
85 * pairs. |
| 79 * |
86 * |
| 80 * See purple_plugin_info_new() for a list of available property names. |
87 * See purple_plugin_info_new() for a list of available property names. |
| 81 * Additionally, you can provide the property "gtk-config-frame-cb", |
88 * Additionally, you can provide the property |
| 82 * which should be a callback that returns a GtkWidget for the plugin's |
89 * <literal>"gtk-config-frame-cb"</literal>, which should be a callback that |
| 83 * configuration (see PidginPluginConfigFrameCb). |
90 * returns a #GtkWidget for the plugin's configuration |
| |
91 * (see #PidginPluginConfigFrameCb). |
| 84 * |
92 * |
| 85 * @first_property: The first property name |
93 * @see purple_plugin_info_new() |
| 86 * @...: The value of the first property, followed optionally by more |
|
| 87 * name/value pairs, followed by %NULL |
|
| 88 * |
94 * |
| 89 * Returns: A new #PidginPluginInfo instance. |
95 * Returns: A new #PidginPluginInfo instance. |
| 90 * |
|
| 91 * @see purple_plugin_info_new() |
|
| 92 */ |
96 */ |
| 93 PidginPluginInfo *pidgin_plugin_info_new(const char *first_property, ...) |
97 PidginPluginInfo *pidgin_plugin_info_new(const char *first_property, ...) |
| 94 G_GNUC_NULL_TERMINATED; |
98 G_GNUC_NULL_TERMINATED; |
| 95 |
99 |
| 96 /** |
100 /** |
| |
101 * pidgin_plugins_save: |
| |
102 * |
| 97 * Saves all loaded plugins. |
103 * Saves all loaded plugins. |
| 98 */ |
104 */ |
| 99 void pidgin_plugins_save(void); |
105 void pidgin_plugins_save(void); |
| 100 |
106 |
| 101 /** |
107 /** |
| |
108 * pidgin_plugin_dialog_show: |
| |
109 * |
| 102 * Shows the Plugins dialog |
110 * Shows the Plugins dialog |
| 103 */ |
111 */ |
| 104 void pidgin_plugin_dialog_show(void); |
112 void pidgin_plugin_dialog_show(void); |
| 105 |
113 |
| 106 G_END_DECLS |
114 G_END_DECLS |