0.9.0claws40
authorChristoph Hohmann <reboot@gmx.ch>
Mon, 16 Jun 2003 19:02:35 +0000 (19:02 +0000)
committerChristoph Hohmann <reboot@gmx.ch>
Mon, 16 Jun 2003 19:02:35 +0000 (19:02 +0000)
* src/main.c
        don't popup main window on --receive or --receive-all

* src/mainwindow.[ch]
* src/plugins/trayicon/trayicon.c
        allow hiding of main window by clicking on the trayicon
        (doesn't work correctly in seperate window mode and may
         cause unexpected GTK problems I couldn't find yet)

* src/common/ssl.c
        remove incorrect warning

ChangeLog.claws
TODO.claws
configure.ac
src/common/ssl.c
src/main.c
src/mainwindow.c
src/mainwindow.h
src/plugins/trayicon/trayicon.c

index cd0cad2..cab3b9b 100644 (file)
@@ -1,3 +1,17 @@
+2003-06-16 [christoph] 0.9.0claws40
+
+       * src/main.c
+               don't popup main window on --receive or --receive-all
+
+       * src/mainwindow.[ch]
+       * src/plugins/trayicon/trayicon.c
+               allow hiding of main window by clicking on the trayicon
+               (doesn't work correctly in seperate window mode and may
+                cause unexpected GTK problems I couldn't find yet)
+
+       * src/common/ssl.c
+               remove incorrect warning
+
 2003-06-15 [alfons]    0.9.0claws39
 
        * src/gtk/gtkstext.c
index 92d18fb..8537cb0 100644 (file)
@@ -29,7 +29,7 @@ win32 0.8.0claws+
        o complete UIDPLUS IMAP support
        o make summaryview display any list of messages,
          fix processing rules by score
-       o privacy api that is independent from the crpyto system
+       o privacy api that is independent from the crypto system
        o rewrite mime message parsing (maybe required for privacy stuff)
        o PEM support (S/MIME)
        o add new messages to the summaryview without reloading the
index 8a5e2fa..d4e3a6c 100644 (file)
@@ -11,7 +11,7 @@ MINOR_VERSION=9
 MICRO_VERSION=0
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws39
+EXTRA_VERSION=claws40
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index 15ebf10..d472f14 100644 (file)
@@ -50,15 +50,6 @@ void ssl_init(void)
        /* Set default certificate paths */
        SSL_CTX_set_default_verify_paths(ssl_ctx);
        
-       /* this problem seems quite common */
-       cert_test = fopen (X509_get_default_cert_file(), "r");
-       if (cert_test != NULL)
-               fclose(cert_test);
-       else {
-               printf("ssl_init: warning, can't open %s\n", X509_get_default_cert_file());
-               printf("ssl_init: it means that certificates' signatures won't appear as Correct,\n");
-               printf("ssl_init: even if they should. Check your openssl install.\n");
-       }
 #if (OPENSSL_VERSION_NUMBER < 0x0090600fL)
        SSL_CTX_set_verify_depth(ctx,1);
 #endif
index 848b130..6ce4bde 100644 (file)
@@ -752,10 +752,8 @@ static void lock_socket_input_cb(gpointer data,
        if (!strncmp(buf, "popup", 5)) {
                main_window_popup(mainwin);
        } else if (!strncmp(buf, "receive_all", 11)) {
-               main_window_popup(mainwin);
                inc_all_account_mail(mainwin, prefs_common.newmail_notify_manu);
        } else if (!strncmp(buf, "receive", 7)) {
-               main_window_popup(mainwin);
                inc_mail(mainwin, prefs_common.newmail_notify_manu);
        } else if (!strncmp(buf, "compose_attach", 14)) {
                GPtrArray *files;
index ba0be58..ac890a7 100644 (file)
@@ -1686,6 +1686,48 @@ void main_window_popup(MainWindow *mainwin)
        }
 }
 
+void main_window_show(MainWindow *mainwin)
+{
+       gtk_widget_show(mainwin->window);
+       gtk_widget_show(mainwin->vbox_body);
+
+       switch (mainwin->type) {
+       case SEPARATE_FOLDER:
+               gtk_widget_show(mainwin->win.sep_folder.folderwin);
+               break;
+       case SEPARATE_MESSAGE:
+               gtk_widget_show(mainwin->win.sep_message.messagewin);
+               break;
+       case SEPARATE_BOTH:
+               gtk_widget_show(mainwin->win.sep_both.folderwin);
+               gtk_widget_show(mainwin->win.sep_both.messagewin);
+               break;
+       default:
+               break;
+       }
+}
+
+void main_window_hide(MainWindow *mainwin)
+{
+       gtk_widget_hide(mainwin->window);
+       gtk_widget_hide(mainwin->vbox_body);
+
+       switch (mainwin->type) {
+       case SEPARATE_FOLDER:
+               gtk_widget_hide(mainwin->win.sep_folder.folderwin);
+               break;
+       case SEPARATE_MESSAGE:
+               gtk_widget_hide(mainwin->win.sep_message.messagewin);
+               break;
+       case SEPARATE_BOTH:
+               gtk_widget_hide(mainwin->win.sep_both.folderwin);
+               gtk_widget_hide(mainwin->win.sep_both.messagewin);
+               break;
+       default:
+               break;
+       }
+}
+
 static void main_window_set_widgets(MainWindow *mainwin, SeparateType type)
 {
        GtkWidget *folderwin = NULL;
index 64081a1..90a9775 100644 (file)
@@ -161,6 +161,8 @@ void main_window_add_mailbox                (MainWindow     *mainwin);
 void main_window_set_menu_sensitive    (MainWindow     *mainwin);
 
 
+void main_window_show                  (MainWindow     *mainwin);
+void main_window_hide                  (MainWindow     *mainwin);
 void main_window_popup                 (MainWindow     *mainwin);
 
 void main_window_toolbar_set_compose_button    (MainWindow *mainwin, 
index f788ce0..082e49f 100644 (file)
@@ -108,16 +108,14 @@ static gboolean folder_item_update_hook(gpointer source, gpointer data)
 static gboolean click_cb(GtkWidget * widget,
                         GdkEventButton * event, gpointer user_data)
 {
-/*
        MainWindow *mainwin;
 
        mainwin = mainwindow_get_mainwindow();
        if (GTK_WIDGET_VISIBLE(GTK_WIDGET(mainwin->window))) {
-               gtk_widget_hide_all(mainwin->window);
+               main_window_hide(mainwin);
        } else {
-               gtk_widget_show_all(mainwin->window);
+               main_window_show(mainwin);
         }
-*/
        return TRUE;
 }