fix summaryview_searchtype_changed prototype
authorColin Leroy <colin@colino.net>
Wed, 21 Aug 2002 13:21:54 +0000 (13:21 +0000)
committerColin Leroy <colin@colino.net>
Wed, 21 Aug 2002 13:21:54 +0000 (13:21 +0000)
ChangeLog.claws
configure.in
src/summaryview.c

index ddb0ebb..ac7ff00 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-21 [colin]     0.8.1claws96
+
+       *src/summaryview.c
+               fix summaryview_searchtype_changed prototype
+
 2002-08-21 [christoph] 0.8.1claws95
 
        * src/mainwindow.c
index 70490c4..3f6f332 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws95
+EXTRA_VERSION=claws96
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 4dd9b91..6597a95 100644 (file)
@@ -264,9 +264,8 @@ static void summary_key_pressed             (GtkWidget              *ctree,
 static void summary_searchbar_pressed  (GtkWidget              *ctree,
                                         GdkEventKey            *event,
                                         SummaryView            *summaryview);
-static void summary_searchtype_changed (GtkWidget              *ctree,
-                                        GdkEventAny            *event,
-                                        SummaryView            *summaryview);
+static void summary_searchtype_changed (GtkMenuItem            *widget, 
+                                        gpointer                data);
 static void summary_open_row           (GtkSCTree              *sctree,
                                         SummaryView            *summaryview);
 static void summary_tree_expanded      (GtkCTree               *ctree,
@@ -878,7 +877,8 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                gchar *searched_header = NULL;
                
                not_killed = NULL;
-               g_strdown(search_string);
+               if(search_string)
+                       g_strdown(search_string);
 
                for(cur = mlist ; cur != NULL ; cur = g_slist_next(cur)) {
                        MsgInfo * msginfo = (MsgInfo *) cur->data;
@@ -895,9 +895,9 @@ gboolean summary_show(SummaryView *summaryview, FolderItem *item)
                                default:
                                        printf("bug in search_type (=%d)\n",search_type);
                        }
-                       
-                       g_strdown(searched_header);
-                       if (searched_header != NULL
+                       if (searched_header) 
+                               g_strdown(searched_header);
+                       if (searched_header 
                            && strstr(searched_header, search_string) != NULL)
                                not_killed = g_slist_append(not_killed, msginfo);
                        else
@@ -4465,11 +4465,11 @@ static void summary_searchbar_pressed(GtkWidget *widget, GdkEventKey *event,
                summary_show(summaryview, summaryview->folder_item);
 }
 
-static void summary_searchtype_changed(GtkWidget *widget, GdkEventAny *event,
-                               SummaryView *summaryview)
+static void summary_searchtype_changed(GtkMenuItem *widget, gpointer data)
 {
-       if (gtk_entry_get_text(GTK_ENTRY(summaryview->search_string)))
-               summary_show(summaryview, summaryview->folder_item);
+       SummaryView *sw = (SummaryView *)data;
+       if (gtk_entry_get_text(GTK_ENTRY(sw->search_string)))
+               summary_show(sw, sw->folder_item);
 }
 
 static void summary_open_row(GtkSCTree *sctree, SummaryView *summaryview)