Sun, 18 May 2003 21:54:11 +0000
[gaim-migrate @ 5823]
this would be helpful
| 5205 | 1 | /** |
| 2 | * @file plugins.h Conversation API | |
| 3 | * @ingroup core | |
| 4 | * | |
| 5 | * gaim | |
| 6 | * | |
| 7 | * Copyright (C) 2002-2003, Christian Hammond <chipx86@gnupdate.org> | |
| 8 | * | |
| 9 | * This program is free software; you can redistribute it and/or modify | |
| 10 | * it under the terms of the GNU General Public License as published by | |
| 11 | * the Free Software Foundation; either version 2 of the License, or | |
| 12 | * (at your option) any later version. | |
| 13 | * | |
| 14 | * This program is distributed in the hope that it will be useful, | |
| 15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 17 | * GNU General Public License for more details. | |
| 18 | * | |
| 19 | * You should have received a copy of the GNU General Public License | |
| 20 | * along with this program; if not, write to the Free Software | |
| 21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
| 22 | */ | |
| 23 | #include "gtkplugin.h" | |
| 24 | #include <string.h> | |
| 25 | ||
| 26 | GtkWidget * | |
| 27 | gaim_gtk_plugin_get_config_frame(GaimPlugin *plugin) | |
| 28 | { | |
| 29 | GaimGtkPluginUiInfo *ui_info; | |
| 30 | ||
| 31 | g_return_val_if_fail(plugin != NULL, NULL); | |
| 32 | g_return_val_if_fail(GAIM_IS_GTK_PLUGIN(plugin), NULL); | |
| 33 | ||
| 34 | if (plugin->info->ui_info == NULL) | |
| 35 | return NULL; | |
| 36 | ||
| 37 | ui_info = GAIM_GTK_PLUGIN_UI_INFO(plugin); | |
| 38 | ||
| 39 | if (ui_info->get_config_frame == NULL) | |
| 40 | return NULL; | |
| 41 | ||
| 42 | return ui_info->get_config_frame(plugin); | |
| 43 | } |