* src/summaryview.c
authorAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 7 Sep 2003 09:24:47 +0000 (09:24 +0000)
committerAlfons Hoogervorst <alfons@proteus.demon.nl>
Sun, 7 Sep 2003 09:24:47 +0000 (09:24 +0000)
abandon setting usize for messageview because it gives layout problems
with the quick search bar and the headerview; fixes assorted UI glitches:

o bug #148, "Toggling of quick-search bar reduces index view area"
o bug #280, "Window resiizes for line length but does not revert"

ChangeLog.claws
configure.ac
src/summaryview.c

index a7e1790..4e437aa 100644 (file)
@@ -1,3 +1,12 @@
+2003-09-07 [alfons]    0.9.4claws69
+       
+       * src/summaryview.c
+               abandon setting usize for messageview because it gives layout problems
+               with the quick search bar and the headerview; fixes assorted UI glitches:
+               
+               o bug #148, "Toggling of quick-search bar reduces index view area" 
+               o bug #280, "Window resiizes for line length but does not revert"
+
 2003-09-07 [christoph] 0.9.4claws68
 
        * src/compose.c
index acea07a..e9987f1 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=4
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=68
+EXTRA_VERSION=69
 if test $EXTRA_VERSION -eq 0; then
     VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${MICRO_VERSION}claws
 else
index 575dafb..c3cef2a 100644 (file)
@@ -4552,31 +4552,12 @@ static void tog_searchbar_cb(GtkWidget *w, gpointer data)
 {
        SummaryView *summaryview = (SummaryView *)data;
        GtkWidget *hbox= summaryview->hbox_search;
-       GtkAllocation size = hbox->allocation;
-       GtkAllocation msgview_size = summaryview->messageview->vbox->allocation;
-       GtkAllocation parent_size = summaryview->vbox->allocation;
        if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))) {
                prefs_common.show_searchbar = TRUE;
                gtk_widget_show(hbox);
-               if (!prefs_common.sep_msg && messageview_is_visible(summaryview->messageview)
-               &&  msgview_size.height > 1 && parent_size.height > 1) {
-                       gtk_widget_set_usize(GTK_WIDGET(summaryview->messageview->vbox),
-                                               -1,msgview_size.height - size.height - SUMMARY_VBOX_SPACING);
-                       gtk_widget_set_usize(GTK_WIDGET(summaryview->vbox),
-                                               -1,parent_size.height + size.height + SUMMARY_VBOX_SPACING);
-                       gtk_paned_set_position(GTK_PANED(summaryview->vbox->parent),-1);
-               }
        } else {
                prefs_common.show_searchbar = FALSE;
                gtk_widget_hide(hbox);
-               if (!prefs_common.sep_msg && messageview_is_visible(summaryview->messageview)
-               &&  msgview_size.height > 1 && parent_size.height > 1) {
-                       gtk_widget_set_usize(GTK_WIDGET(summaryview->messageview->vbox),
-                                               -1,msgview_size.height + size.height + SUMMARY_VBOX_SPACING);
-                       gtk_widget_set_usize(GTK_WIDGET(summaryview->vbox),
-                                               -1,parent_size.height - size.height - SUMMARY_VBOX_SPACING);
-                       gtk_paned_set_position(GTK_PANED(summaryview->vbox->parent),-1);
-               }
        }
 }