diff options
author | Lucas Rocha <lucasr@gnome.org> | 2006-07-26 23:17:04 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2006-07-26 23:17:04 +0000 |
commit | 216ee62fe1c062a9fb87aa3ce2097e0f8d21a06e (patch) | |
tree | b289857ec4a7650c7abe9b5c105bd6066a0a888c /src | |
parent | Updated Macedonian Translation <arangela@cvs.gnome.org> (diff) | |
download | zenity-216ee62fe1c062a9fb87aa3ce2097e0f8d21a06e.tar.gz zenity-216ee62fe1c062a9fb87aa3ce2097e0f8d21a06e.tar.bz2 zenity-216ee62fe1c062a9fb87aa3ce2097e0f8d21a06e.zip |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 14 | ||||
-rw-r--r-- | src/zenity.h | 2 |
2 files changed, 9 insertions, 7 deletions
@@ -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 |