[gimp/tito: 43/50] Moved cell renderer to only function using it.



commit a271d2643e5f6af303ef487c77da6412222de000
Author: Srihari Sriraman <srihari c42 in>
Date:   Sun Sep 16 09:45:20 2012 +0530

    Moved cell renderer to only function using it.
    
    Yet another global variable, dead.

 app/dialogs/tito-dialog.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/app/dialogs/tito-dialog.c b/app/dialogs/tito-dialog.c
index d84598a..5deb622 100644
--- a/app/dialogs/tito-dialog.c
+++ b/app/dialogs/tito-dialog.c
@@ -71,7 +71,6 @@ static gboolean          first_time = TRUE;
 static gint              tmp_x, tmp_y;
 static gint              par_x, par_y;
 static gint              par_height, par_width;
-static GtkCellRenderer  *cell_renderer;
 
 
 enum RES_COL {
@@ -1040,10 +1039,11 @@ static GtkWidget*
 tito_setup_results_list(void)
 {
   gint wid1=100;
-  GtkWidget *sc_win;
-  GtkListStore *store;
-  GtkCellRenderer *cell1;
-  GtkTreeViewColumn *column1, *column2;
+  GtkWidget           *sc_win;
+  GtkListStore        *store;
+  GtkCellRenderer     *cell1;
+  GtkCellRenderer     *cell_renderer;
+  GtkTreeViewColumn   *column1, *column2;
 
   sc_win= gtk_scrolled_window_new(NULL, NULL);
   store=gtk_list_store_new(N_COL, G_TYPE_STRING, G_TYPE_STRING, GTK_TYPE_ACTION,G_TYPE_BOOLEAN);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]