src/mainwindow.[ch]
src/stock_pixmap.c
src/summaryview.c
+ src/prefs_common.c
- refreshing after changing pixmap theme better
now (thanks Paul)
- wanted to remove some mem leaks, but alfons was
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws68
+EXTRA_VERSION=claws69
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
{
folderview_init(folderview);
folderview_set_all();
-
- summary_write_cache(folderview->summaryview);
-
- folderview_select(folderview, folderview->summaryview->folder_item);
}
main_window_set_menu_sensitive(mainwin);
main_window_set_toolbar_sensitive(mainwin);
+ /* pixmap themes */
+ gtk_container_remove(GTK_CONTAINER(mainwin->handlebox), GTK_WIDGET(mainwin->toolbar));
+ mainwin->toolbar = NULL;
+ main_window_toolbar_create(mainwin, mainwin->handlebox);
+ set_toolbar_style(mainwin);
+ folderview_reflect_prefs_pixmap_theme(mainwin->folderview);
+ summary_reflect_prefs_pixmap_theme(mainwin->summaryview);
+
if (prefs_common.immediate_exec)
gtk_widget_hide(mainwin->exec_btn);
else
gtk_widget_show(mainwin->exec_btn);
+ activate_compose_button(mainwin, prefs_common.toolbar_style, mainwin->compose_btn_type);
+
summary_redisplay_msg(mainwin->summaryview);
headerview_set_visibility(mainwin->messageview->headerview,
prefs_common.display_header_pane);
}
}
-void main_window_reflect_prefs_pixmap_theme(void)
-{
- GList *cur;
- MainWindow *mainwin;
-
- for (cur = mainwin_list; cur != NULL; cur = cur->next) {
- mainwin = (MainWindow *)cur->data;
- gtk_container_remove(GTK_CONTAINER(mainwin->handlebox), GTK_WIDGET(mainwin->toolbar));
- mainwin->toolbar = NULL;
- main_window_toolbar_create(mainwin, mainwin->handlebox);
- set_toolbar_style(mainwin);
- main_window_set_toolbar_sensitive(mainwin);
- folderview_reflect_prefs_pixmap_theme(mainwin->folderview);
- summary_reflect_prefs_pixmap_theme(mainwin->summaryview);
- }
-}
-
-
void main_window_set_summary_column(void)
{
GList *cur;
gtk_widget_show(mainwin->handlebox);
gtk_widget_queue_resize(mainwin->handlebox);
}
-}
\ No newline at end of file
+}
+
void main_window_unlock (MainWindow *mainwin);
void main_window_reflect_prefs_all (void);
-void main_window_reflect_prefs_pixmap_theme (void);
void main_window_set_summary_column (void);
void main_window_set_account_menu (GList *account_list);
void main_window_separation_change (MainWindow *mainwin,
{
prefs_set_data_from_dialog(param);
main_window_reflect_prefs_all();
- main_window_reflect_prefs_pixmap_theme();
compose_reflect_prefs_pixmap_theme();
prefs_common_save_config();
g_return_val_if_fail(window != NULL, NULL);
g_return_val_if_fail(icon >= 0 && icon < N_STOCK_PIXMAPS, NULL);
- stock_pixmap_gdk(window, icon, &pixmap, &mask);
- return gtk_pixmap_new(pixmap, mask);
+ if (stock_pixmap_gdk(window, icon, &pixmap, &mask) != -1)
+ return gtk_pixmap_new(pixmap, mask);
+
+ return NULL;
}
/* create GdkPixmap if it has not created yet */
pix_d->file,
".xpm",
NULL);
- if (file_exist(icon_file_name, FALSE))
+ if (is_file_exist(icon_file_name))
PIXMAP_CREATE_FROM_FILE(window, pix, pix_d->mask, icon_file_name);
if (pix)
pix_d->icon_path = prefs_common.pixmap_theme_path;
for (i = 0; i < N_STOCK_PIXMAPS; i++) {
filetoexist = g_strconcat(fullentry, G_DIR_SEPARATOR_S, pixmaps[i].file, ".xpm", NULL);
- if (file_exist(filetoexist, FALSE)) {
+ if (is_file_exist(filetoexist)) {
*list = g_list_append(*list, fullentry);
break;
}
stock_pixmap_find_themes_in_dir(&list, userthemes);
stock_pixmap_find_themes_in_dir(&list, systemthemes);
-
+
g_free(userthemes);
g_free(systemthemes);
return list;
GtkCTree *ctree = GTK_CTREE(summaryview->ctree);
GtkCList *clist = GTK_CLIST(summaryview->ctree);
GtkCTreeNode *node;
- GtkWidget *pixmap;
-
- summary_write_cache(summaryview);
+ GtkWidget *pixmap;
gtk_widget_destroy(summaryview->folder_pixmap);
gtk_box_pack_start(GTK_BOX(summaryview->hbox), pixmap, FALSE, FALSE, 4);
gtk_box_reorder_child(GTK_BOX(summaryview->hbox), pixmap, 0);
gtk_widget_show(pixmap);
- summaryview->folder_pixmap = pixmap;
-
- summary_show(summaryview, summaryview->folder_item, FALSE);
+ summaryview->folder_pixmap = pixmap;
+
+ folderview_unselect(summaryview->folderview);
+ folderview_select(summaryview->folderview, summaryview->folder_item);
}