Yasumichi Akahoshi
yasum****@users*****
2005年 5月 7日 (土) 22:52:40 JST
Index: cxplorer/src/cxp-right-pane.c diff -u cxplorer/src/cxp-right-pane.c:1.37 cxplorer/src/cxp-right-pane.c:1.38 --- cxplorer/src/cxp-right-pane.c:1.37 Sat May 7 22:23:11 2005 +++ cxplorer/src/cxp-right-pane.c Sat May 7 22:52:40 2005 @@ -29,7 +29,6 @@ GtkWidget *file_list; GtkWidget *preview; GtkWidget *popup_menu; - gboolean show_dot_file; gboolean dispose_has_run; gchar *cur_dir; GdkPixbuf *cxp_dir; @@ -214,7 +213,6 @@ gtk_container_add (GTK_CONTAINER (scrolled_window), priv->preview); gtk_widget_show (priv->preview); - priv->show_dot_file = FALSE; priv->dispose_has_run = FALSE; priv->cur_dir = NULL; priv->handler = cxp_handler_new (); @@ -727,6 +725,9 @@ GtkTreeView *file_list; GtkTreeModel *model; GtkTextBuffer *text_buffer; + gboolean show_dot_file; + + show_dot_file = gconf_client_get_bool (priv->client, "/apps/cxp/cxplorer/ShowDotFile", NULL); text_buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (priv->preview)); gtk_text_buffer_set_text (text_buffer, "", -1); @@ -742,7 +743,7 @@ while ((filename = g_dir_read_name (dir)) != NULL) { if ((filename[0] == '.') - && (priv->show_dot_file == FALSE)) + && (show_dot_file == FALSE)) { continue; } @@ -788,14 +789,6 @@ return NULL; } -void cxp_right_pane_set_show_dot_file (CxpRightPane * right_pane, - gboolean show_dot_file) -{ - CxpRightPanePrivate *priv = CXP_RIGHT_PANE_GET_PRIVATE (right_pane); - - priv->show_dot_file = show_dot_file; -} - void cxp_right_pane_make_file (CxpRightPane * right_pane, const gchar * base_name) { Index: cxplorer/src/cxp-right-pane.h diff -u cxplorer/src/cxp-right-pane.h:1.13 cxplorer/src/cxp-right-pane.h:1.14 --- cxplorer/src/cxp-right-pane.h:1.13 Sat May 7 21:50:40 2005 +++ cxplorer/src/cxp-right-pane.h Sat May 7 22:52:40 2005 @@ -51,7 +51,6 @@ GtkWidget *cxp_right_pane_new (GConfClient *client); void cxp_right_pane_change_directory (CxpRightPane *self, const gchar *dirname); gchar *cxp_right_pane_get_active_file_name (CxpRightPane *right_pane); -void cxp_right_pane_set_show_dot_file (CxpRightPane *right_pane, gboolean show_dot_file); void cxp_right_pane_make_file (CxpRightPane *right_pane, const gchar *base_name); void cxp_right_pane_delete_current_file (CxpRightPane *right_pane); void cxp_right_pane_paste_from_clipboard (CxpRightPane *right_pane); Index: cxplorer/src/cxplorer-window.c diff -u cxplorer/src/cxplorer-window.c:1.41 cxplorer/src/cxplorer-window.c:1.42 --- cxplorer/src/cxplorer-window.c:1.41 Sat May 7 22:23:11 2005 +++ cxplorer/src/cxplorer-window.c Sat May 7 22:52:40 2005 @@ -256,7 +256,6 @@ gtk_widget_show (dirview); right_pane = cxp_right_pane_new (private->client); - cxp_right_pane_set_show_dot_file (CXP_RIGHT_PANE(right_pane), show_dot_file); gtk_paned_pack2 (GTK_PANED (hpaned), right_pane, TRUE, FALSE); gtk_widget_show (right_pane); gtk_widget_show (hpaned); @@ -708,7 +707,6 @@ show_dot_file = gtk_toggle_action_get_active(action); gconf_client_set_bool (private->client, "/apps/cxp/cxplorer/ShowDotFile", show_dot_file, NULL); cxp_dir_view_set_show_dot_file (CXP_DIR_VIEW(private->dirview), show_dot_file); - cxp_right_pane_set_show_dot_file (CXP_RIGHT_PANE(private->right_pane), show_dot_file); cxp_dir_view_refresh (CXP_DIR_VIEW(private->dirview)); }