[grisbi-cvs] grisbi/src affichage.c, 1.159, 1.160 fenetre_principale.c, 1.113, 1.114 fenetre_principale.h, 1.24, 1.25
Cedric Auger
cedric_grisbi at users.sourceforge.net
Sun Jun 7 23:38:12 CEST 2009
Update of /cvsroot/grisbi/grisbi/src
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26614/src
Modified Files:
affichage.c fenetre_principale.c fenetre_principale.h
Log Message:
update headings bar with the preferences
Index: fenetre_principale.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/fenetre_principale.c,v
retrieving revision 1.113
retrieving revision 1.114
diff -u -d -r1.113 -r1.114
--- fenetre_principale.c 27 May 2009 21:39:26 -0000 1.113
+++ fenetre_principale.c 7 Jun 2009 21:38:10 -0000 1.114
@@ -49,7 +49,6 @@
GtkNotebookPage *page,
guint page_number,
gpointer null );
-static gboolean gsb_gui_update_show_headings ();
static gboolean on_simpleclick_event_run ( GtkWidget * button, GdkEvent * button_event,
GCallback cb );
/*END_STATIC*/
Index: fenetre_principale.h
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/fenetre_principale.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- fenetre_principale.h 17 Dec 2007 10:44:38 -0000 1.24
+++ fenetre_principale.h 7 Jun 2009 21:38:10 -0000 1.25
@@ -22,6 +22,7 @@
/* START_DECLARATION */
+gboolean gsb_gui_update_show_headings ();
GtkWidget * create_main_widget ( void );
void gsb_gui_headings_update ( gchar * title, gchar * suffix );
void gsb_gui_headings_update_suffix ( gchar * suffix );
Index: affichage.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/affichage.c,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -d -r1.159 -r1.160
--- affichage.c 4 Jun 2009 20:11:31 -0000 1.159
+++ affichage.c 7 Jun 2009 21:38:10 -0000 1.160
@@ -46,9 +46,12 @@
#include "./gsb_select_icon.h"
#include "./include.h"
#include "./erreur.h"
+#include "./fenetre_principale.h"
/*END_INCLUDE*/
/*START_STATIC*/
+gboolean preferences_switch_headings_bar ( GtkWidget *toggle_button,
+ gpointer null );
static gboolean change_choix_utilise_fonte_liste ( GtkWidget *check_button,
GtkWidget *vbox );
static gboolean change_choix_utilise_logo ( GtkWidget *check_button,
@@ -724,13 +727,32 @@
gtk_box_pack_start ( GTK_BOX ( vbox_pref ),
gsb_automem_checkbutton_new ( _("Display headings bar"),
&(etat.show_headings_bar),
- NULL, NULL ),
+ G_CALLBACK (preferences_switch_headings_bar), NULL ),
FALSE, FALSE, 0 );
return ( vbox_pref );
}
+
+/**
+ * called when switch the preferences heading bar button
+ * to show/hide the headings bar
+ *
+ * \param toggle button
+ * \param null
+ *
+ * \return FALSE
+ * */
+gboolean preferences_switch_headings_bar ( GtkWidget *toggle_button,
+ gpointer null )
+{
+ gsb_gui_update_show_headings ();
+ return FALSE;
+}
+
+
+
/**
* create a list of customable colors
*
More information about the cvs
mailing list