X-Git-Url: https://harishankar.org/repos/?p=wordblah.git;a=blobdiff_plain;f=wordblah_player.c;h=50a1c57a2cfd5c7bb863422415ee48f92a90a0a7;hp=58541f58bd60d0f6e10ed783df35bc735a644946;hb=HEAD;hpb=4b3af864cbe5027ed14b6956b29ee71d06b4c3d5 diff --git a/wordblah_player.c b/wordblah_player.c index 58541f5..50a1c57 100644 --- a/wordblah_player.c +++ b/wordblah_player.c @@ -57,7 +57,7 @@ gboolean on_down_list_selection_changed (GtkTreeSelection *sel, GtkTreeIter iter; GtkTreeModel* mod; - if (gtk_tree_selection_get_selected (sel, &mod, &iter)) + if (gtk_tree_selection_get_selected (sel, &mod, &iter) == TRUE) { guint sel_word_index; gtk_tree_model_get (mod, &iter, 0, &sel_word_index, -1); @@ -78,7 +78,7 @@ gboolean on_across_list_selection_changed (GtkTreeSelection *sel, GtkTreeIter iter; GtkTreeModel* mod; - if (gtk_tree_selection_get_selected (sel, &mod, &iter)) + if (gtk_tree_selection_get_selected (sel, &mod, &iter) == TRUE) { guint sel_word_index; gtk_tree_model_get (mod, &iter, 0, &sel_word_index, -1); @@ -690,7 +690,7 @@ void on_menu_about_activate (GtkMenuItem *item, gpointer data) "website", WEBSITE, "website-label", WEBSITE_LABEL, "license-type", GTK_LICENSE_CUSTOM, - "license", LICENSE_BSD + "license", LICENSE_BSD, "version", VERSION, (char*)NULL); }