summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Rocha <lucasr@gnome.org>2006-07-26 23:26:24 +0000
committerLucas Almeida Rocha <lucasr@src.gnome.org>2006-07-26 23:26:24 +0000
commit41558e30ec4d2720e8343afdb6ab617e9b5f8ae4 (patch)
tree027e8faa50f4a3412e9d2ddf74f3a6bf7301c3a9
parent17186d686b555eb362ce99d3a1fa1483ceb0a6a0 (diff)
downloadzenity-41558e30ec4d2720e8343afdb6ab617e9b5f8ae4.tar.gz
fix small build warnings on 64-bit architectures (Fixes bug #344125). fix
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.
-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 64af9d5..6091df8 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-30 Raivis Dejus <orvils@gmail.com>
* configure.in: Added lv to ALL_LINGUAS.
diff --git a/src/tree.c b/src/tree.c
index 0273e55..1e67f70 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 6fb2b4c..9d0b160 100644
--- a/src/zenity.h
+++ b/src/zenity.h
@@ -132,6 +132,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