[libpeas] [PeasUIPluginManager] Check that the configuration widget is not a toplevel
- From: Garrett Regier <gregier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libpeas] [PeasUIPluginManager] Check that the configuration widget is not a toplevel
- Date: Thu, 1 Jul 2010 21:35:02 +0000 (UTC)
commit 7ebe7b8540f7d44825eee828bc5fc080babd6faf
Author: Garrett Regier <alias301 gmail com>
Date: Thu Jul 1 14:27:22 2010 -0700
[PeasUIPluginManager] Check that the configuration widget is not a toplevel
Check that it is not a toplevel instead of a window to allow for returning
a GtkOffscreenWindow.
libpeasui/peas-ui-plugin-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libpeasui/peas-ui-plugin-manager.c b/libpeasui/peas-ui-plugin-manager.c
index 35f0055..7abc273 100644
--- a/libpeasui/peas-ui-plugin-manager.c
+++ b/libpeasui/peas-ui-plugin-manager.c
@@ -215,7 +215,7 @@ configure_button_cb (GtkWidget *button,
g_object_unref (exten);
g_return_if_fail (GTK_IS_WIDGET (conf_widget));
- g_return_if_fail (!GTK_IS_WINDOW (conf_widget));
+ g_return_if_fail (!gtk_widget_is_toplevel (conf_widget));
toplevel = GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (pm)));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]