[mednaffe] 37/99: Correct behavior when to change to a empty list

Stephen Kitt skitt at moszumanska.debian.org
Tue Aug 2 21:00:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

skitt pushed a commit to branch master
in repository mednaffe.

commit 3908283885f617878c30a4403763cd35434ee3cc
Author: amatcoder at gmail.com <amatcoder at gmail.com@44025b82-9115-564b-7d03-7f3fc60b4744>
Date:   Fri Dec 27 03:01:16 2013 +0000

    Correct behavior when to change to a empty list
---
 src/list.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/list.c b/src/list.c
index 25c2036..65905f4 100644
--- a/src/list.c
+++ b/src/list.c
@@ -37,7 +37,13 @@ void change_list (guidata *gui)
     
   total = g_strconcat(" Games in list: ", buff, NULL);
   gtk_statusbar_pop(GTK_STATUSBAR(gui->sbnumber), 1);
+  gtk_statusbar_pop(GTK_STATUSBAR(gui->sbname), 1);
   gtk_statusbar_push(GTK_STATUSBAR(gui->sbnumber), 1, total);
+  gtk_statusbar_push(GTK_STATUSBAR(gui->sbname), 1, " Game selected: None");
+  g_free(gui->rom);
+  g_free(gui->fullpath);
+  gui->rom = NULL;
+  gui->fullpath = NULL;
   g_free(total);
   g_free(buff);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mednaffe.git



More information about the Pkg-games-commits mailing list