From 84fb4afc424cdae9c695d6b32232900950c502bc Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Thu, 30 Apr 2009 22:14:16 +0200 Subject: [PATCH] Fix compile warnings --- src/plugin.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/plugin.c b/src/plugin.c index 92520ab..53f0cad 100644 --- a/src/plugin.c +++ b/src/plugin.c @@ -5,6 +5,7 @@ #include #include #include +#include "exo-wrap-table.h" #include "plugin.h" static gchar * albumview_format_time(unsigned long seconds); @@ -201,7 +202,6 @@ static void albumview_init() /** Get an allready exposed widgets to grab theme colors from. */ GtkWidget *colw = (GtkWidget *)playlist3_get_category_tree_view(); GtkWidget *label = NULL; - GtkWidget *table = NULL; GtkWidget *event = gtk_event_box_new(); int i = 0; albumview_vbox = gtk_vbox_new(FALSE, 0); @@ -225,7 +225,7 @@ static void albumview_init() #if GTK_CHECK_VERSION(2,16,0) for(i=1; i<13;i++){ - gtk_scale_add_mark(GTK_RANGE(spin), (gdouble)i,GTK_POS_TOP, NULL); + gtk_scale_add_mark(GTK_SCALE(spin), (gdouble)i,GTK_POS_TOP, NULL); } #endif @@ -523,9 +523,8 @@ static gboolean update_view_real(void) * Create holding table if it does not exist */ if(!table){ - - table = exo_wrap_table_new(TRUE);//gtk_table_new(rows, supported_columns, TRUE); GtkWidget *ali = gtk_alignment_new(0.0, 0.5, 0,0); + table = exo_wrap_table_new(TRUE);//gtk_table_new(rows, supported_columns, TRUE); gtk_container_add(GTK_CONTAINER(ali), table); gtk_box_pack_start(GTK_BOX(albumview_tree), ali, FALSE, FALSE, 0); } @@ -581,7 +580,7 @@ static gboolean update_view_real(void) /* Attach it to the song */ complete_list_iter->userdata = g_object_ref_sink(vbox); - complete_list_iter->freefunc = gtk_widget_destroy; + complete_list_iter->freefunc = (void *)gtk_widget_destroy; g_object_set_data(G_OBJECT(vbox), "item", item); g_signal_connect(item, "button-press-event", G_CALLBACK(album_button_press), complete_list_iter->song); @@ -609,7 +608,7 @@ static gboolean update_view_real(void) TIMER_SUB(start, stop, diff); printf("Creating/Updating albums time elapsed: %lu s %lus us\n", diff.tv_sec, diff.tv_usec); for(iter = entries = g_list_reverse(entries); iter; iter = g_list_next(iter)){ - gtk_container_add(table, iter->data); + gtk_container_add(GTK_CONTAINER(table), iter->data); } if(entries) g_list_free(entries); TIMER_SUB(start, stop, diff); -- 2.11.4.GIT