+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
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
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
/* 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
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;
}
}
+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;
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,
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;
}