+2005-08-30 [colin] 1.9.13cvs72
+
+ * src/folderview.c
+ Fix flickering
+ * src/mainwindow.c
+ Remove useless callback
+ * src/mimeview.c
+ * src/gtk/filesel.c
+ * src/gtk/filesel.h
+ Add a filesel_select_file_save_folder() - used by Save All
+
2005-08-29 [paul] 1.9.13cvs71
* AUTHORS
( cvs diff -u -r 1.179.2.63 -r 1.179.2.64 src/imap.c; cvs diff -u -r 1.18.2.10 -r 1.18.2.11 src/stock_pixmap.h; cvs diff -u -r 1.36.2.41 -r 1.36.2.42 src/common/utils.c; cvs diff -u -r 1.20.2.22 -r 1.20.2.23 src/common/utils.h; cvs diff -u -r 1.1.2.1 -r 1.1.2.2 src/pixmaps/trash_btn.xpm; ) > 1.9.13cvs69.patchset
( cvs diff -u -r 1.1.2.2 -r 1.1.2.3 src/plugins/pgpinline/pgpinline.c; ) > 1.9.13cvs70.patchset
( cvs diff -u -r 1.100.2.23 -r 1.100.2.24 AUTHORS; cvs diff -u -r 1.25.2.9 -r 1.25.2.10 src/matcher_parser_parse.y; cvs diff -u -r 1.1.4.18 -r 1.1.4.19 src/etpan/imap-thread.c; ) > 1.9.13cvs71.patchset
+( cvs diff -u -r 1.207.2.58 -r 1.207.2.59 src/folderview.c; cvs diff -u -r 1.274.2.56 -r 1.274.2.57 src/mainwindow.c; cvs diff -u -r 1.83.2.37 -r 1.83.2.38 src/mimeview.c; cvs diff -u -r 1.2.2.14 -r 1.2.2.15 src/gtk/filesel.c; cvs diff -u -r 1.1.4.4 -r 1.1.4.5 src/gtk/filesel.h; ) > 1.9.13cvs72.patchset
MICRO_VERSION=13
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=71
+EXTRA_VERSION=72
EXTRA_RELEASE=
EXTRA_GTK2_VERSION=
{
if (!folderview->opened) return;
- gtkut_ctree_set_focus_row(GTK_CTREE(folderview->ctree),
- folderview->opened);
gtk_ctree_select(GTK_CTREE(folderview->ctree), folderview->opened);
}
gint action = (open == TRUE) ?
(folder_mode == TRUE ? GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER:
GTK_FILE_CHOOSER_ACTION_OPEN):
- GTK_FILE_CHOOSER_ACTION_SAVE;
+ (folder_mode == TRUE ? GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER:
+ GTK_FILE_CHOOSER_ACTION_SAVE);
gchar * action_btn = (open == TRUE) ? GTK_STOCK_OPEN:GTK_STOCK_SAVE;
GtkWidget *chooser = gtk_file_chooser_dialog_new (title, NULL, action,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
- action_btn, GTK_RESPONSE_OK,
+ action_btn, GTK_RESPONSE_ACCEPT,
NULL);
if (filter != NULL) {
GtkFileFilter *file_filter = gtk_file_filter_new();
gtk_file_chooser_set_current_folder(GTK_FILE_CHOOSER(chooser), last_selected_dir);
}
- if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_OK)
+ if (gtk_dialog_run (GTK_DIALOG (chooser)) == GTK_RESPONSE_ACCEPT)
slist = gtk_file_chooser_get_filenames (GTK_FILE_CHOOSER (chooser));
manage_window_focus_out(chooser, NULL, NULL);
return filesel_select_file (title, path, TRUE, TRUE, NULL);
}
+gchar *filesel_select_file_save_folder(const gchar *title, const gchar *path)
+{
+ return filesel_select_file (title, path, FALSE, TRUE, NULL);
+}
+
const gchar *filter);
gchar *filesel_select_file_save(const gchar *title, const gchar *path);
gchar *filesel_select_file_open_folder(const gchar *title, const gchar *path);
+gchar *filesel_select_file_save_folder(const gchar *title, const gchar *path);
GList *filesel_select_multiple_files_open(const gchar *title);
static gboolean ac_label_button_pressed (GtkWidget *widget,
GdkEventButton *event,
gpointer data);
-static void ac_menu_popup_closed (GtkMenuShell *menu_shell,
- gpointer data);
static gint main_window_close_cb (GtkWidget *widget,
GdkEventAny *event,
/* set account selection menu */
ac_menu = gtk_item_factory_get_widget
(ifactory, "/Configuration/Change current account");
- g_signal_connect(G_OBJECT(ac_menu), "selection_done",
- G_CALLBACK(ac_menu_popup_closed), mainwin);
mainwin->ac_menu = ac_menu;
toolbar_main_set_sensitive(mainwin);
return TRUE;
}
-static void ac_menu_popup_closed(GtkMenuShell *menu_shell, gpointer data)
-{
- MainWindow *mainwin = (MainWindow *)data;
- GtkWidget *button;
-
- button = g_object_get_data(G_OBJECT(menu_shell), "menu_button");
- if (!button) return;
- gtk_button_set_relief(GTK_BUTTON(button), GTK_RELIEF_NONE);
- g_object_set_data(G_OBJECT(mainwin->ac_menu), "menu_button", NULL);
- manage_window_focus_in(mainwin->window, NULL, NULL);
-}
-
static gint main_window_close_cb(GtkWidget *widget, GdkEventAny *event,
gpointer data)
{
toolbar_update(TOOLBAR_MAIN, mainwindow_get_mainwindow());
main_window_set_menu_sensitive(mainwindow_get_mainwindow());
toolbar_main_set_sensitive(mainwindow_get_mainwindow());
-
+ gtk_button_set_relief(GTK_BUTTON(mainwindow_get_mainwindow()->ac_button), GTK_RELIEF_NONE);
item = folderview_get_selected_item(
mainwindow_get_mainwindow()->folderview);
if (item) {
startdir = g_strconcat(prefs_common.attach_save_dir,
G_DIR_SEPARATOR_S, NULL);
- dirname = filesel_select_file_open_folder(_("Select destination folder"), startdir);
+ dirname = filesel_select_file_save_folder(_("Select destination folder"), startdir);
if (!dirname) {
if (startdir) g_free(startdir);
return;