[grisbi-cvs] [SCM] grisbi branch, master, updated. upstream_version_0_9.0-122-g3fb5a57

Rémi Cardona nobody at users.sourceforge.net
Sun Apr 3 14:14:46 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  3fb5a5798ad58a5505d4c45d84482fe7bc6bafa1 (commit)
       via  e286ab875b9249d9b8660b2de3c1751b0ab31f19 (commit)
      from  a0ddc6ea3f3e9797bb17a405dd9e73d6dd11aa22 (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 3fb5a5798ad58a5505d4c45d84482fe7bc6bafa1
Author: Rémi Cardona <remi at gentoo.org>
Date:   Sun Apr 3 13:36:38 2011 +0200

    Remove useless strlen() call
    
    gtk_ui_manager_add_ui_from_string() accepts -1 as the string length and
    figures it out on its own as 'ui_manager_buffer' is NULL-terminated.

commit e286ab875b9249d9b8660b2de3c1751b0ab31f19
Author: Rémi Cardona <remi at gentoo.org>
Date:   Sun Apr 3 13:30:17 2011 +0200

    Declare 'ui_manager_buffer' as static as it's only used within menu.c

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

Changes:
diff --git a/src/menu.c b/src/menu.c
index 448aaf2..1b7e339 100644
--- a/src/menu.c
+++ b/src/menu.c
@@ -88,7 +88,7 @@ static gint merge_id = -1;
 static gint recent_files_merge_id = -1;
 static gint move_to_account_merge_id = -1;
 
-static gchar *ui_manager_buffer = 
+static const gchar *ui_manager_buffer =
 "<ui>"
 "  <menubar>"
 "    <menu name='FileMenu' action='FileMenuAction' >"
@@ -317,9 +317,7 @@ GtkWidget *init_menus ( GtkWidget *vbox )
 
     gtk_ui_manager_insert_action_group ( ui_manager, actions, 0 );
     merge_id = gtk_ui_manager_add_ui_from_string ( ui_manager,
-                        ui_manager_buffer,
-                        strlen ( ui_manager_buffer ),
-                        NULL );
+                        ui_manager_buffer, -1, NULL );
 
 #ifndef GTKOSXAPPLICATION
     gtk_window_add_accel_group ( GTK_WINDOW ( run.window ),


hooks/post-receive
-- 
grisbi


More information about the cvs mailing list