[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9_1-41-g5cf5fcc

Pierre Biava nobody at users.sourceforge.net
Sat May 7 21:06:53 CEST 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grisbi".

The branch, master has been updated
       via  5cf5fcc03135097670eaac352d95c291158002d0 (commit)
      from  e921908ef70bbfd1f95a0fe3ba1dc258c57c1755 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5cf5fcc03135097670eaac352d95c291158002d0
Author: pbiava <pierre.biava at nerim.net>
Date:   Sat May 7 21:03:25 2011 +0200

    fixes a crash in creating a new state

-----------------------------------------------------------------------

Changes:
diff --git a/src/etats_gtktable.c b/src/etats_gtktable.c
index d9112df..617d838 100644
--- a/src/etats_gtktable.c
+++ b/src/etats_gtktable.c
@@ -265,8 +265,9 @@ gint gtktable_initialise ( GSList * opes_selectionnees, gchar * filename )
 /*****************************************************************************************************/
 gint gtktable_finish ()
 {
-    while ( GTK_WIDGET ( table_etat ) -> parent );
-        gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW ( scrolled_window_etat ), table_etat );
+    if ( GTK_WIDGET ( table_etat ) -> parent )
+        gtk_widget_destroy ( GTK_WIDGET ( table_etat ) -> parent );
+    gtk_scrolled_window_add_with_viewport ( GTK_SCROLLED_WINDOW ( scrolled_window_etat ), table_etat );
     gtk_scrolled_window_set_shadow_type ( GTK_SCROLLED_WINDOW ( scrolled_window_etat ), GTK_SHADOW_NONE );
 
     gtk_container_set_border_width ( GTK_CONTAINER(table_etat), 6 );


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list