[grisbi-devel] [PATCH 01/15] Remove unused function gsb_gui_is_hpaned_general()
Rémi Cardona
remi at gentoo.org
Sat Mar 9 16:53:53 CET 2013
Declare hpaned_general as a local variable as it's only used inside
gsb_gui_create_general_widgets().
---
src/fenetre_principale.c | 20 +++-----------------
src/fenetre_principale.h | 1 -
2 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/src/fenetre_principale.c b/src/fenetre_principale.c
index f4fc4b0..79f00d4 100644
--- a/src/fenetre_principale.c
+++ b/src/fenetre_principale.c
@@ -72,7 +72,6 @@ static gboolean on_simpleclick_event_run ( GtkWidget * button, GdkEvent * button
/* données des widgets généraux */
static GtkWidget *vbox_general = NULL;
-static GtkWidget *hpaned_general = NULL;
static GtkWidget *notebook_general = NULL;
/** Notebook of the account pane. */
@@ -94,6 +93,7 @@ static GtkWidget * headings_suffix = NULL;
*/
GtkWidget *gsb_gui_create_general_widgets ( void )
{
+ GtkWidget *hpaned_general;
GtkWidget * hbox, * arrow_eb, * arrow_left, * arrow_right;
GtkStyle * style;
@@ -505,7 +505,7 @@ gboolean gsb_gui_hpaned_size_allocate ( GtkWidget *hpaned,
/**
- * initialise notebook_general, hpaned_general et vbox_general
+ * initialise notebook_general et vbox_general
*
*
*/
@@ -520,7 +520,7 @@ void gsb_gui_init_general_vbox ( void )
/**
- * initialise notebook_general, hpaned_general et vbox_general
+ * initialise notebook_general et vbox_general
*
*
*/
@@ -531,20 +531,6 @@ void gsb_gui_init_general_notebook ( void )
/**
- * test l'existence de hpaned_general
- *
- *
- */
-gboolean gsb_gui_is_hpaned_general ( void )
-{
- if ( hpaned_general && GTK_IS_WIDGET ( hpaned_general ) )
- return TRUE;
- else
- return FALSE;
-}
-
-
-/**
*
*
*
diff --git a/src/fenetre_principale.h b/src/fenetre_principale.h
index a2a530e..74d4fa4 100644
--- a/src/fenetre_principale.h
+++ b/src/fenetre_principale.h
@@ -36,7 +36,6 @@ void gsb_gui_headings_update_title ( gchar * title );
void gsb_gui_init_general_notebook ( void );
void gsb_gui_init_general_vbox ( void );
gint gsb_gui_get_hpaned_left_width ( void );
-gboolean gsb_gui_is_hpaned_general ( void );
void gsb_gui_notebook_change_page ( GsbGeneralNotebookPages page );
void gsb_gui_on_account_change_page ( GsbAccountNotebookPages page );
gboolean gsb_gui_on_account_switch_page ( GtkNotebook *notebook,
--
1.8.1.4
More information about the devel
mailing list