Branch: refs/heads/master Author: Lex Trotman elextr@gmail.com Committer: Lex Trotman elextr@gmail.com Date: Sat, 22 Sep 2012 06:05:51 Commit: 9ef34bbe0cc9a66b3be062da0dd98a713d74af32 https://github.com/geany/geany/commit/9ef34bbe0cc9a66b3be062da0dd98a713d74af...
Log Message: ----------- Fix pointer warning
GCC 4.7.1 gives a incompatible pointer warning because gtk_adjustment_new returns a GObject* not a GtkAdjustment* (new compiler default).
Modified Paths: -------------- src/stash.c
Modified: src/stash.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -1119,7 +1119,7 @@ void stash_tree_setup(GPtrArray *group_array, GtkTreeView *tree) stash_tree_renderer_set_data, GSIZE_TO_POINTER(G_TYPE_STRING), NULL); /* integer renderer */ cell = gtk_cell_renderer_spin_new(); - adjustment = gtk_adjustment_new(0, G_MININT, G_MAXINT, 1, 10, 0); + adjustment = GTK_ADJUSTMENT(gtk_adjustment_new(0, G_MININT, G_MAXINT, 1, 10, 0)); g_object_set(cell, "adjustment", adjustment, NULL); g_signal_connect(cell, "edited", G_CALLBACK(stash_tree_string_edited), model); gtk_cell_layout_pack_start(GTK_CELL_LAYOUT(column), cell, FALSE);
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).