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

Back to archive index

Yasumichi Akahoshi yasum****@users*****
2005年 5月 19日 (木) 02:16:37 JST


Index: cxplorer/src/cxp-pref-dialog.c
diff -u cxplorer/src/cxp-pref-dialog.c:1.3 cxplorer/src/cxp-pref-dialog.c:1.4
--- cxplorer/src/cxp-pref-dialog.c:1.3	Sun May  8 01:06:56 2005
+++ cxplorer/src/cxp-pref-dialog.c	Thu May 19 02:16:37 2005
@@ -5,7 +5,7 @@
  * A widget of Property dialog
  * @author Yasumichi Akahoshi <yasum****@users*****>
  * @date Sun Apr 3 02:53:00 2005
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
  ****************************************************************************/
 
 #ifdef HAVE_CONFIG_H
@@ -73,6 +73,7 @@
 static void cxp_pref_dialog_dispose (GObject * obj);
 static void cxp_pref_dialog_finalize (GObject * obj);
 static void cxp_pref_dialog_ok_button_clicked (GtkWidget *button, CxpPrefDialog *dialog);
+static void cxp_pref_dialog_custom_button_clicked (GtkWidget *button, CxpPrefDialog *dialog);
 
 static void cxp_pref_dialog_class_init (CxpPrefDialogClass *klass)
 {
@@ -128,6 +129,7 @@
 	GtkWidget *apply_button;
 	GtkWidget *cancel_button;
 	GtkWidget *ok_button;
+	GtkWidget *custom_button;
 	GtkWidget *notebook;
 	GtkWidget *table;
 	GtkWidget *label;
@@ -171,6 +173,9 @@
 	gtk_entry_set_text (GTK_ENTRY(private->entry[ENTRY_ATTACH_MAIL]), gconf_client_get_string (private->client, config_key[ENTRY_ATTACH_MAIL], NULL));
 	gtk_entry_set_width_chars (GTK_ENTRY(private->entry[ENTRY_ATTACH_MAIL]), 40);
 	gtk_box_pack_start (GTK_BOX(hbox), private->entry[ENTRY_ATTACH_MAIL], FALSE, TRUE, 2);
+	custom_button = gtk_button_new_with_label (_("Edit of additional menu..."));
+	gtk_box_pack_start (GTK_BOX(vbox), custom_button, FALSE, FALSE, 2);
+	g_signal_connect (custom_button, "clicked", G_CALLBACK(cxp_pref_dialog_custom_button_clicked), self);
 	gtk_widget_show_all (vbox);
 
 	label = gtk_label_new (_("Send To"));
@@ -273,6 +278,15 @@
 	}
 }
 
+static void cxp_pref_dialog_custom_button_clicked (GtkWidget *button, CxpPrefDialog *dialog)
+{
+	GtkWidget *window;
+
+	window = cxp_gconf_pair_editor_new (GTK_WINDOW(dialog), _("Edit of additional menu"), "/apps/cxp/SendTo", _("Caption"), _("Command"));
+	gtk_widget_show (window);
+	gtk_window_set_modal (GTK_WINDOW(window), TRUE);
+}
+
 GType cxp_pref_dialog_get_type (void)
 {
 	static GType type = 0;


Cxplorer-cvs メーリングリストの案内
Back to archive index