[Commits] gtkaspell.c 1.9.2.81 1.9.2.82 gtkcmctree.c 1.1.2.30 1.1.2.31 gtkshruler.c 1.1.4.22 1.1.4.23

mones at claws-mail.org mones at claws-mail.org
Sun Sep 16 23:56:23 CEST 2012


Update of /home/claws-mail/claws/src/gtk
In directory srv:/tmp/cvs-serv31257/src/gtk

Modified Files:
      Tag: gtk2
	gtkaspell.c gtkcmctree.c gtkshruler.c 
Log Message:
2012-09-16 [mones]	3.8.1cvs60

        * src/action.c                                                          
                Removed dup calls with ignored result
        * src/addr_compl.c                                                      
                Removed unused var is_group and simplified logic around it      
        * src/addrharvest.c                                                     
        * src/matcher.c
        * src/procmsg.c                                                         
        * src/etpan/etpan-thread-manager.c                                      
                Use unused var r to verify result and emit messages on error
        * src/compose.c                                                         
                Move color variable into conditional usage blocks
                Remove assigned but not used vars: lock, titles, count          
        * src/edittags.c
                Remove assigned but not used var actions                        
        * src/folderview.c
                Remove assigned but not used vars: from_parent, src_node        
        * src/imap_gtk.c
        * src/mh_gtk.c                                                          
                Remove malloc-ed but not used var: old_path                     
        * src/news.c
                Comment unused vars from commented block: tofetch, fetched      
        * src/prefs_account.c
                Remove assigned but not used var: privacy_enabled
        * src/prefs_actions.c
        * src/prefs_customheader.c
                Remove assigned but not used var: store
        * src/prefs_filtering.c
                Remove assigned but not used var: n_rows
        * src/prefs_template.c
                Remove assigned but not used vars: model, list_store
        * src/prefs_toolbar.c
                Remove assigned but not used var: win_titles
        * src/printing.c
                Remove assigned but not used vars: orientation, line, baseline,
                off_chars 
        * src/etpan/imap-thread.c
                Remove assigned but not used var: value, r
                Refactor to check correct memory allocation
        * src/etpan/nntp-thread.c
                Remove assigned but not used var: value
        * src/gtk/gtkaspell.c
                Remove assigned but not used vars: textbuf, exist
                Remove unused function: find_gtkaspeller
        * src/gtk/gtkcmctree.c
                Remove unused function: gtk_cmctree_get_offset
        * src/gtk/gtkshruler.c
                Remove assigned but not used vars: ruler, priv 

Index: gtkaspell.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkaspell.c,v
retrieving revision 1.9.2.81
retrieving revision 1.9.2.82
diff -u -d -r1.9.2.81 -r1.9.2.82
--- gtkaspell.c	12 Sep 2012 09:23:13 -0000	1.9.2.81
+++ gtkaspell.c	16 Sep 2012 21:56:21 -0000	1.9.2.82
@@ -191,8 +191,6 @@
 static void 		reset_theword_data		(GtkAspell *gtkaspell);
 static void 		free_checkers			(gpointer elt, 
 							 gpointer data);
-static gint 		find_gtkaspeller		(gconstpointer aa, 
-							 gconstpointer bb);
 
 static void destroy_menu(GtkWidget *widget, gpointer user_data);	
 
@@ -491,7 +489,6 @@
                                                  GtkAspell    *gtkaspell)
 {
 	gint pos;
-	GtkTextBuffer *textbuf = gtk_text_view_get_buffer(text_view);
 
 	cm_return_val_if_fail(gtkaspell->gtkaspeller->speller, FALSE);
 
@@ -649,7 +646,6 @@
 /* Checker creation */
 static GtkAspeller *gtkaspeller_new(Dictionary *dictionary)
 {
-	GSList 		*exist;
 	GtkAspeller	*gtkaspeller = NULL;
 	GtkAspeller	*tmp;
 	Dictionary	*dict;
@@ -669,9 +665,6 @@
 	tmp = g_new0(GtkAspeller, 1);
 	tmp->dictionary = dict;
 
-	exist = g_slist_find_custom(gtkaspellcheckers->checkers, tmp, 
-				    find_gtkaspeller);
-	
 	g_free(tmp);
 
 	if ((gtkaspeller = gtkaspeller_real_new(dict)) != NULL) {
@@ -2389,17 +2382,6 @@
 	gtkaspeller_real_delete(gtkaspeller);
 }
 
-static gint find_gtkaspeller(gconstpointer aa, gconstpointer bb)
-{
-	Dictionary *a = ((GtkAspeller *) aa)->dictionary;
-	Dictionary *b = ((GtkAspeller *) bb)->dictionary;
-
-	if (a && b && a->fullname && b->fullname)
-		return strcmp(a->fullname, b->fullname);
-
-	return 1;
-}
-
 gchar *gtkaspell_get_default_dictionary(GtkAspell *gtkaspell)
 {
 	if (gtkaspell && gtkaspell->gtkaspeller &&

Index: gtkcmctree.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/Attic/gtkcmctree.c,v
retrieving revision 1.1.2.30
retrieving revision 1.1.2.31
diff -u -d -r1.1.2.30 -r1.1.2.31
--- gtkcmctree.c	11 Mar 2012 09:19:23 -0000	1.1.2.30
+++ gtkcmctree.c	16 Sep 2012 21:56:21 -0000	1.1.2.31
@@ -1467,21 +1467,6 @@
   return GTK_WIDGET_CLASS (parent_class)->button_press_event (widget, event);
 }
 
-static gint
-gtk_cmctree_get_offset(GtkCMCTree     *ctree,
-		      GtkCMCTreeRow  *ctree_row,
-		      gint          column,
-		      GdkRectangle *clip_rectangle)
-{
-  gint justify_right = (GTK_CMCLIST (ctree)->column[column].justification == GTK_JUSTIFY_RIGHT);
-
-  if (justify_right)
-      return (clip_rectangle->x + clip_rectangle->width - 1 -
-		ctree->tree_indent * (ctree_row->level - 1));
-
-  return clip_rectangle->x + ctree->tree_indent * (ctree_row->level - 1);
-}
-
 static GtkCMCTreeNode *
 gtk_cmctree_last_visible (GtkCMCTree     *ctree,
 			GtkCMCTreeNode *node)

Index: gtkshruler.c
===================================================================
RCS file: /home/claws-mail/claws/src/gtk/gtkshruler.c,v
retrieving revision 1.1.4.22
retrieving revision 1.1.4.23
diff -u -d -r1.1.4.22 -r1.1.4.23
--- gtkshruler.c	7 Jul 2012 07:09:35 -0000	1.1.4.22
+++ gtkshruler.c	16 Sep 2012 21:56:21 -0000	1.1.4.23
@@ -280,9 +280,6 @@
 static void
 gtk_shruler_dispose (GObject *object)
 {
-  GtkSHRuler        *ruler = GTK_SHRULER (object);
-  GtkSHRulerPrivate *priv  = GTK_SHRULER_GET_PRIVATE (ruler);
-
   G_OBJECT_CLASS (parent_class)->dispose (object);
 }
 



More information about the Commits mailing list