summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--src/tree.c14
-rw-r--r--src/zenity.h2
3 files changed, 15 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 391c3709..2181e54d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2006-07-26 Lucas Rocha <lucasr@gnome.org>
+
+ * src/tree.c (zenity_tree_fill_entries_from_stdin, zenity_tree): fix
+ small build warnings on 64-bit architectures (Fixes bug #344125).
+ * src/zenity.h: fix small build warning.
+
2006-06-10 Francisco Javier F. Serrador <serrador@cvs.gnome.org>
* src/about.c: Replaced FSF postal address with the current.
diff --git a/src/tree.c b/src/tree.c
index 0273e551..1e67f706 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -195,9 +195,9 @@ zenity_tree_fill_entries_from_stdin (GtkTreeView *tree_view,
{
GIOChannel *channel;
- g_object_set_data (G_OBJECT (tree_view), "n_columns", (gint *) n_columns);
- g_object_set_data (G_OBJECT (tree_view), "toggles", (gint *) toggles);
- g_object_set_data (G_OBJECT (tree_view), "editable", (gint *) editable);
+ g_object_set_data (G_OBJECT (tree_view), "n_columns", GINT_TO_POINTER (n_columns));
+ g_object_set_data (G_OBJECT (tree_view), "toggles", GINT_TO_POINTER (toggles));
+ g_object_set_data (G_OBJECT (tree_view), "editable", GINT_TO_POINTER (editable));
channel = g_io_channel_unix_new (0);
g_io_channel_set_encoding (channel, NULL, NULL);
@@ -218,7 +218,7 @@ zenity_tree_fill_entries (GtkTreeView *tree_view,
model = gtk_tree_view_get_model (tree_view);
- g_object_set_data (G_OBJECT (tree_view), "n_columns", (gint *) n_columns);
+ g_object_set_data (G_OBJECT (tree_view), "n_columns", GINT_TO_POINTER (n_columns));
while (args[i] != NULL) {
gint j;
@@ -403,7 +403,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
if (tree_data->radiobox) {
g_object_set (G_OBJECT (cell_renderer), "radio", TRUE, NULL);
- g_object_set_data (G_OBJECT (model), "radio", (gint *) 1);
+ g_object_set_data (G_OBJECT (model), "radio", GINT_TO_POINTER (1));
}
g_signal_connect (cell_renderer, "toggled",
@@ -421,7 +421,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
g_signal_connect (G_OBJECT (cell_renderer), "edited",
G_CALLBACK (zenity_cell_edited_callback),
gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view)));
- g_object_set_data (G_OBJECT (cell_renderer), "column", (gint *) column_index);
+ g_object_set_data (G_OBJECT (cell_renderer), "column", GINT_TO_POINTER (column_index));
column = gtk_tree_view_column_new_with_attributes (tmp->data,
cell_renderer,
@@ -452,7 +452,7 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data)
g_signal_connect (G_OBJECT (cell_renderer), "edited",
G_CALLBACK (zenity_cell_edited_callback),
gtk_tree_view_get_model (GTK_TREE_VIEW (tree_view)));
- g_object_set_data (G_OBJECT (cell_renderer), "column", (gint *) column_index);
+ g_object_set_data (G_OBJECT (cell_renderer), "column", GINT_TO_POINTER (column_index));
column = gtk_tree_view_column_new_with_attributes (tmp->data,
cell_renderer,
diff --git a/src/zenity.h b/src/zenity.h
index c6a1892e..c15f950a 100644
--- a/src/zenity.h
+++ b/src/zenity.h
@@ -134,6 +134,8 @@ void zenity_tree (ZenityData *data,
ZenityTreeData *tree_data);
void zenity_notification (ZenityData *data,
ZenityNotificationData *notification_data);
+void zenity_scale (ZenityData *data,
+ ZenityScaleData *scale_data);
void zenity_about (ZenityData *data);
G_END_DECLS
bgstack15