[libgda] Remove more compilation warnings
- From: Vivien Malerba <vivien src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgda] Remove more compilation warnings
- Date: Sat, 2 Oct 2010 12:11:59 +0000 (UTC)
commit ed81cffecd02f5c4dc9221663d5a13f0ee02ce06
Author: Vivien Malerba <malerba gnome-db org>
Date: Sat Oct 2 12:43:06 2010 +0200
Remove more compilation warnings
libgda-ui/gdaui-raw-grid.c | 3 +--
libgda-ui/gdaui-server-operation.c | 4 ++--
2 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/libgda-ui/gdaui-raw-grid.c b/libgda-ui/gdaui-raw-grid.c
index 2f25926..3b81c81 100644
--- a/libgda-ui/gdaui-raw-grid.c
+++ b/libgda-ui/gdaui-raw-grid.c
@@ -1852,8 +1852,7 @@ menu_show_columns_cb (GtkWidget *widget, GdauiRawGrid *grid)
}
static void export_type_changed_cb (GtkComboBox *types, GtkWidget *dialog);
-static void save_as_response_cb (GtkDialog *dialog, guint response_id, GdauiRawGrid *grid);
-
+static void save_as_response_cb (GtkDialog *dialog, gint response_id, GdauiRawGrid *grid);
static void
menu_save_as_cb (G_GNUC_UNUSED GtkWidget *widget, GdauiRawGrid *grid)
{
diff --git a/libgda-ui/gdaui-server-operation.c b/libgda-ui/gdaui-server-operation.c
index 3770966..0ef778d 100644
--- a/libgda-ui/gdaui-server-operation.c
+++ b/libgda-ui/gdaui-server-operation.c
@@ -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]