/*
Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- Copyright (C) 1999-2009 Hiroyuki Yamamoto and the Claws Mail team
+ Copyright (C) 1999-2011 Hiroyuki Yamamoto and the Claws Mail team
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
{"Message/Mark/UnwatchThread", NULL, N_("Unwatch thread"), NULL, NULL, G_CALLBACK(unwatch_thread_cb) },
/* separation */
- {"Message/Mark/MarkSpam", NULL, N_("Mark as spam"), NULL, NULL, G_CALLBACK(mark_as_spam_cb) },
- {"Message/Mark/MarkHam", NULL, N_("Mark as ham"), NULL, NULL, G_CALLBACK(mark_as_ham_cb) },
+ {"Message/Mark/MarkSpam", NULL, N_("Mark as _spam"), NULL, NULL, G_CALLBACK(mark_as_spam_cb) },
+ {"Message/Mark/MarkHam", NULL, N_("Mark as _ham"), NULL, NULL, G_CALLBACK(mark_as_ham_cb) },
/* separation */
{"Message/Mark/Lock", NULL, N_("Lock"), NULL, NULL, G_CALLBACK(lock_msgs_cb) },
debug_print("Creating main window...\n");
mainwin = g_new0(MainWindow, 1);
- g_object_get(gtk_settings_get_default(),
- "gtk-button-images", &mainwin->button_images,
- NULL);
-
/* main window */
window = GTK_WIDGET(gtkut_window_new(GTK_WINDOW_TOPLEVEL, "mainwindow"));
gtk_window_set_title(GTK_WINDOW(window), PROG_VERSION);
online_pixmap = stock_pixmap_widget(hbox_stat, STOCK_PIXMAP_ONLINE);
offline_pixmap = stock_pixmap_widget(hbox_stat, STOCK_PIXMAP_OFFLINE);
online_switch = gtk_button_new ();
+ gtkut_widget_set_can_focus(online_switch, FALSE);
CLAWS_SET_TIP(online_switch,
_("You are online. Click the icon to go offline"));
offline_switch = gtk_button_new ();
ac_button = gtk_button_new();
CLAWS_SET_TIP(ac_button, _("Select account"));
- GTK_WIDGET_UNSET_FLAGS(ac_button, GTK_CAN_FOCUS);
+ gtkut_widget_set_can_focus(ac_button, FALSE);
gtk_widget_set_size_request(ac_button, -1, 0);
gtk_box_pack_end(GTK_BOX(hbox_stat), ac_button, FALSE, FALSE, 0);
g_signal_connect(G_OBJECT(ac_button), "button_press_event",
ADD_MENU_ACCEL_GROUP_TO_WINDOW(summaryview->popupmenu, mainwin->window);
#ifndef GENERIC_UMPC
+#ifdef G_OS_UNIX
gtk_window_iconify(GTK_WINDOW(mainwin->window));
+#endif
#endif
g_signal_connect(G_OBJECT(window), "window_state_event",
gtk_window_maximize(GTK_WINDOW(mainwin->window));
if (first_start) {
+#ifdef G_OS_UNIX
gtk_window_deiconify(GTK_WINDOW(mainwin->window));
+ gtkut_window_popup(mainwin->window);
+#endif
first_start = FALSE;
} else {
gtkut_window_popup(mainwin->window);
cm_menu_set_sensitive_full(mainwin->ui_manager, "Menu/View/ShowHide/MessageView",
(layout_mode != WIDE_MSGLIST_LAYOUT && layout_mode != SMALL_LAYOUT));
- if (!mainwin->button_images) {
- gboolean button_images = FALSE;
- g_object_get(gtk_settings_get_default(),
- "gtk-button-images", &button_images,
- NULL);
- if ((layout_mode == VERTICAL_LAYOUT || layout_mode == SMALL_LAYOUT) &&
- !button_images) {
- button_images = TRUE;
- g_object_set(gtk_settings_get_default(), "gtk-button-images",
- TRUE, NULL);
- }
- else if(button_images) {
- button_images = FALSE;
- g_object_set(gtk_settings_get_default(), "gtk-button-images",
- FALSE, NULL);
- }
- }
switch (layout_mode) {
case VERTICAL_LAYOUT:
case NORMAL_LAYOUT: