[libgda] Check for Gtk+ 2.20 when using WidgetEmbedder
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Check for Gtk+ 2.20 when using WidgetEmbedder
- Date: Wed, 22 Sep 2010 13:36:24 +0000 (UTC)
commit 5fa5c7de805e5b5d85674c7689d03fb38e2f6a51
Author: Vivien Malerba <malerba gnome-db org>
Date: Wed Sep 22 15:33:35 2010 +0200
Check for Gtk+ 2.20 when using WidgetEmbedder
libgda-ui/data-entries/gdaui-entry-shell.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libgda-ui/data-entries/gdaui-entry-shell.c b/libgda-ui/data-entries/gdaui-entry-shell.c
index bdd270c..3e9d13e 100644
--- a/libgda-ui/data-entries/gdaui-entry-shell.c
+++ b/libgda-ui/data-entries/gdaui-entry-shell.c
@@ -24,7 +24,7 @@
#include <libgda/gda-data-handler.h>
#include <libgda-ui/internal/utility.h>
#include <glib/gi18n-lib.h>
-#if GTK_CHECK_VERSION (2,18,0)
+#if GTK_CHECK_VERSION (2,20,0)
#include "widget-embedder.h"
#endif
static void gdaui_entry_shell_class_init (GdauiEntryShellClass *class);
@@ -169,7 +169,7 @@ gdaui_entry_shell_init (GdauiEntryShell * shell)
shell->priv->hbox = hbox;
/* vbox to insert the real widget to edit data */
-#if GTK_CHECK_VERSION (2,18,0)
+#if GTK_CHECK_VERSION (2,20,0)
shell->priv->embedder = widget_embedder_new ();
#else
shell->priv->embedder = gtk_vbox_new (FALSE, 0);
@@ -470,7 +470,7 @@ gdaui_entry_shell_set_unknown (GdauiEntryShell *shell, gboolean unknown)
{
g_return_if_fail (GDAUI_IS_ENTRY_SHELL (shell));
-#if GTK_CHECK_VERSION (2,18,0)
+#if GTK_CHECK_VERSION (2,20,0)
widget_embedder_set_valid ((WidgetEmbedder*) shell->priv->embedder, !unknown);
#else
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]