[Cxplorer-cvs 00995] CVS update: cxplorer/src

Zurück zum Archiv-Index

Yasumichi Akahoshi yasum****@users*****
2005年 4月 9日 (土) 14:56:53 JST


Index: cxplorer/src/cxplorer-window.c
diff -u cxplorer/src/cxplorer-window.c:1.10 cxplorer/src/cxplorer-window.c:1.11
--- cxplorer/src/cxplorer-window.c:1.10	Sat Apr  9 14:34:23 2005
+++ cxplorer/src/cxplorer-window.c	Sat Apr  9 14:56:52 2005
@@ -150,6 +150,9 @@
 	GtkWidget *right_pane;
 	GtkWidget *statusbar;
 	gchar *current_dir;
+	gchar *preview_dir;
+	gchar *preview_text;
+	gchar *preview_binary;
 
 	private->profile = cxp_profile_new ("cxplorer", "main");
 
@@ -196,13 +199,20 @@
 	gtk_paned_pack1 (GTK_PANED (hpaned), dirview, FALSE, FALSE);
 	gtk_widget_show (dirview);
 
+	preview_text = cxp_profile_get_string (private->profile, "PreviewText");
+	preview_binary = cxp_profile_get_string (private->profile, "PreviewBinary");
+	preview_dir = cxp_profile_get_string (private->profile, "PreviewDir");
 	right_pane = cxp_right_pane_new ();
-	g_object_set (right_pane, "preview_text", "head -n 20",
-		      "preview_binary", "od -t x1z -A x -N 112 --width=16",
-		      "preview_dir", "ls", NULL);
+	g_object_set (right_pane, "preview_text", preview_text,
+		      "preview_binary", preview_binary,
+		      "preview_dir", preview_dir, NULL);
 	gtk_paned_pack2 (GTK_PANED (hpaned), right_pane, TRUE, FALSE);
 	gtk_widget_show (right_pane);
 	gtk_widget_show (hpaned);
+	g_free (preview_text);
+	g_free (preview_binary);
+	g_free (preview_dir);
+
 	statusbar = gtk_statusbar_new ();
 	gtk_box_pack_start (GTK_BOX (vbox), statusbar, FALSE, FALSE, 0);
 	gtk_widget_show (statusbar);


Cxplorer-cvs メーリングリストの案内
Zurück zum Archiv-Index