aboutsummaryrefslogtreecommitdiffstats
path: root/modules/plugin-manager/evolution-plugin-manager.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-09-15 01:38:47 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-09-15 01:49:08 +0800
commit95fe9256305bad92697bf1043efcbd61238cf94b (patch)
treeb1b8d204cba628580ab7097283c980c56507be14 /modules/plugin-manager/evolution-plugin-manager.c
parentb6f61694d42b65d02d12c268e991fdf8b96f50bf (diff)
downloadgsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar.gz
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar.bz2
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar.lz
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar.xz
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.tar.zst
gsoc2013-evolution-95fe9256305bad92697bf1043efcbd61238cf94b.zip
Fix a crapload of run-time warnings.
EConfig and EMAccountEditor are very, very brittle.
Diffstat (limited to 'modules/plugin-manager/evolution-plugin-manager.c')
-rw-r--r--modules/plugin-manager/evolution-plugin-manager.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/plugin-manager/evolution-plugin-manager.c b/modules/plugin-manager/evolution-plugin-manager.c
index a46215b41f..554719810e 100644
--- a/modules/plugin-manager/evolution-plugin-manager.c
+++ b/modules/plugin-manager/evolution-plugin-manager.c
@@ -224,7 +224,7 @@ eppm_enable_toggled (GtkCellRendererToggle *renderer,
static void
action_plugin_manager_cb (GtkAction *action,
- EShellWindow *shell_window)
+ EExtension *extension)
{
Manager *m;
gint i;
@@ -239,13 +239,17 @@ action_plugin_manager_cb (GtkAction *action,
GSList *plugins, *link;
gchar *string;
GtkWidget *subvbox;
+ EExtensible *extensible;
m = g_malloc0 (sizeof (*m));
+ /* Retrieve the parent EShellWindow. */
+ extensible = e_extension_get_extensible (extension);
+
/* Setup the ui */
dialog = gtk_dialog_new_with_buttons (
_("Plugin Manager"),
- GTK_WINDOW (shell_window),
+ GTK_WINDOW (extensible),
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE, NULL);