[libgda/gtk3] Don't use symbols removed from GTK+-3
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda/gtk3] Don't use symbols removed from GTK+-3
- Date: Tue, 15 Jun 2010 19:07:12 +0000 (UTC)
commit 1fc553d5c70e89811745a6204f3c76cd4c032851
Author: Vivien Malerba <malerba gnome-db org>
Date: Tue Jun 15 20:30:04 2010 +0200
Don't use symbols removed from GTK+-3
libgda-ui/data-entries/gdaui-entry-common-time.c | 4 ++--
libgda-ui/data-entries/gdaui-entry-number.c | 2 +-
libgda-ui/data-entries/gdaui-entry-string.c | 2 +-
libgda-ui/data-entries/plugins/gdaui-entry-cgrid.c | 4 ++--
.../data-entries/plugins/gdaui-entry-filesel.c | 4 ++--
libgda-ui/gdaui-data-proxy-info.c | 4 ++--
libgda-ui/gdaui-server-operation.c | 6 +++---
7 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/libgda-ui/data-entries/gdaui-entry-common-time.c b/libgda-ui/data-entries/gdaui-entry-common-time.c
index 560391f..a8e4e81 100644
--- a/libgda-ui/data-entries/gdaui-entry-common-time.c
+++ b/libgda-ui/data-entries/gdaui-entry-common-time.c
@@ -525,9 +525,9 @@ set_editable (GdauiEntryWrapper *mgwrap, gboolean editable)
g_return_if_fail (mgtim->priv);
if (mgtim->priv->entry_date)
- gtk_entry_set_editable (GTK_ENTRY (mgtim->priv->entry_date), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (mgtim->priv->entry_date), editable);
if (mgtim->priv->entry_time)
- gtk_entry_set_editable (GTK_ENTRY (mgtim->priv->entry_time), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (mgtim->priv->entry_time), editable);
if (mgtim->priv->date_button)
gtk_widget_set_sensitive (mgtim->priv->date_button, editable);
}
diff --git a/libgda-ui/data-entries/gdaui-entry-number.c b/libgda-ui/data-entries/gdaui-entry-number.c
index 4bc128a..5aa087a 100644
--- a/libgda-ui/data-entries/gdaui-entry-number.c
+++ b/libgda-ui/data-entries/gdaui-entry-number.c
@@ -397,7 +397,7 @@ set_editable (GdauiEntryWrapper *mgwrap, gboolean editable)
g_return_if_fail (GDAUI_IS_ENTRY_NUMBER (mgwrap));
mgstr = GDAUI_ENTRY_NUMBER (mgwrap);
- gtk_entry_set_editable (GTK_ENTRY (mgstr->priv->entry), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (mgstr->priv->entry), editable);
}
static void
diff --git a/libgda-ui/data-entries/gdaui-entry-string.c b/libgda-ui/data-entries/gdaui-entry-string.c
index eaf27cb..010f07a 100644
--- a/libgda-ui/data-entries/gdaui-entry-string.c
+++ b/libgda-ui/data-entries/gdaui-entry-string.c
@@ -528,7 +528,7 @@ set_editable (GdauiEntryWrapper *mgwrap, gboolean editable)
mgstr = GDAUI_ENTRY_STRING (mgwrap);
g_return_if_fail (mgstr->priv);
- gtk_entry_set_editable (GTK_ENTRY (mgstr->priv->entry), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (mgstr->priv->entry), editable);
gtk_text_view_set_editable (GTK_TEXT_VIEW (mgstr->priv->view), editable);
}
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-cgrid.c b/libgda-ui/data-entries/plugins/gdaui-entry-cgrid.c
index cf82d07..2bd9f69 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-cgrid.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-cgrid.c
@@ -1,6 +1,6 @@
/* gdaui-entry-cgrid.c
*
- * Copyright (C) 2007 - 2007 Carlos Savoretti
+ * Copyright (C) 2007 - 2010 Carlos Savoretti
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
@@ -815,7 +815,7 @@ set_editable (GdauiEntryWrapper *entry_wrapper,
GdauiEntryCGrid *cgrid = GDAUI_ENTRY_CGRID(entry_wrapper);
- gtk_entry_set_editable (GTK_ENTRY(cgrid->priv->entry), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (cgrid->priv->entry), editable);
}
static void
diff --git a/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c b/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
index d5ca8b9..55528b3 100644
--- a/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
+++ b/libgda-ui/data-entries/plugins/gdaui-entry-filesel.c
@@ -1,6 +1,6 @@
/* gdaui-entry-filesel.c
*
- * Copyright (C) 2005 - 2006 Vivien Malerba
+ * Copyright (C) 2005 - 2010 Vivien Malerba
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
@@ -328,6 +328,6 @@ set_editable (GdauiEntryWrapper *mgwrap, gboolean editable)
filesel = GDAUI_ENTRY_FILESEL (mgwrap);
g_return_if_fail (filesel->priv);
- gtk_entry_set_editable (GTK_ENTRY (filesel->priv->entry), editable);
+ gtk_editable_set_editable (GTK_EDITABLE (filesel->priv->entry), editable);
gtk_widget_set_sensitive (filesel->priv->button, editable);
}
diff --git a/libgda-ui/gdaui-data-proxy-info.c b/libgda-ui/gdaui-data-proxy-info.c
index 74f7b03..c186855 100644
--- a/libgda-ui/gdaui-data-proxy-info.c
+++ b/libgda-ui/gdaui-data-proxy-info.c
@@ -1,6 +1,6 @@
/* gdaui-data-proxy-info.c
*
- * Copyright (C) 2006 - 2009 Vivien Malerba <malerba gnome-db org>
+ * Copyright (C) 2006 - 2010 Vivien Malerba <malerba gnome-db org>
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
@@ -446,7 +446,7 @@ modif_buttons_make (GdauiDataProxyInfo *info)
gtk_toolbar_set_icon_size (GTK_TOOLBAR (info->priv->buttons_bar), GTK_ICON_SIZE_SMALL_TOOLBAR);
g_object_set (G_OBJECT (info->priv->buttons_bar), "toolbar-style", GTK_TOOLBAR_ICONS, NULL);
gtk_widget_set_name (info->priv->buttons_bar, "gdaui-data-proxy-info");
- gtk_toolbar_set_tooltips (GTK_TOOLBAR (info->priv->buttons_bar), TRUE);
+ g_object_set (info->priv->buttons_bar, "has-tooltip", TRUE, NULL);
gtk_box_pack_start (GTK_BOX (info), info->priv->buttons_bar, TRUE, TRUE, 0);
}
else {
diff --git a/libgda-ui/gdaui-server-operation.c b/libgda-ui/gdaui-server-operation.c
index 80de97d..0f4f8c2 100644
--- a/libgda-ui/gdaui-server-operation.c
+++ b/libgda-ui/gdaui-server-operation.c
@@ -1,6 +1,6 @@
/* gdaui-server-operation.c
*
- * Copyright (C) 2006 - 2009 Vivien Malerba
+ * Copyright (C) 2006 - 2010 Vivien Malerba
*
* This Library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public License as
@@ -643,14 +643,14 @@ fill_create_widget (GdauiServerOperation *form, const gchar *path, gchar **secti
if (label_entry) {
parent = gtk_widget_get_parent (label_entry);
if (parent) {
- gtk_widget_ref (label_entry);
+ g_object_ref (label_entry);
gtk_container_remove (GTK_CONTAINER (parent), label_entry);
}
gtk_table_attach (GTK_TABLE (table), label_entry,
0, 1, tab_index, tab_index+1,
GTK_FILL | GTK_SHRINK, GTK_SHRINK, 0, 0);
if (parent)
- gtk_widget_unref (label_entry);
+ g_object_unref (label_entry);
}
nb_labels++;
tab_index++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]