aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-request.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2007-11-15 06:04:21 +0800
committerMatthew Barnes <mbarnes@src.gnome.org>2007-11-15 06:04:21 +0800
commit9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91 (patch)
tree2e1e96f33404781354c422a7e9beaf458ebeb655 /e-util/e-request.c
parent7e8f8bb9e5167b0219b48ab3e8062080d3740b0a (diff)
downloadgsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.gz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.bz2
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.lz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.xz
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.tar.zst
gsoc2013-evolution-9e4fcb29cf7f05c18f7fd34e318f9e795fa32e91.zip
** Remove trailing whitespace from source code.
2007-11-14 Matthew Barnes <mbarnes@redhat.com> ** Remove trailing whitespace from source code. svn path=/trunk/; revision=34537
Diffstat (limited to 'e-util/e-request.c')
-rw-r--r--e-util/e-request.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/e-util/e-request.c b/e-util/e-request.c
index a0fb9cfac3..beb52686e9 100644
--- a/e-util/e-request.c
+++ b/e-util/e-request.c
@@ -39,9 +39,9 @@
* @title: the dialog title (in the locale character set)
* @prompt: the prompt (in the locale character set)
* @default: default value (in UTF8)
- *
+ *
* Request a string from the user.
- *
+ *
* Return value: %NULL if the user cancelled the dialog, the inserted
* string (in UTF8) otherwise. The string must be freed by the caller.
**/
@@ -56,10 +56,10 @@ e_request_string (GtkWindow *parent,
GtkWidget *dialog;
GtkWidget *entry;
GtkWidget *vbox;
-
+
g_return_val_if_fail (title != NULL, NULL);
g_return_val_if_fail (prompt != NULL, NULL);
-
+
dialog = gtk_dialog_new_with_buttons (title, parent,
GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
@@ -68,13 +68,13 @@ e_request_string (GtkWindow *parent,
gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK);
gtk_window_set_default_size (GTK_WINDOW (dialog), 275, -1);
- gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
+ gtk_container_set_border_width (GTK_CONTAINER (dialog), 6);
vbox = GTK_DIALOG (dialog)->vbox;
-
+
prompt_label = gtk_label_new (prompt);
gtk_box_pack_start (GTK_BOX (vbox), prompt_label, TRUE, TRUE, 6);
- gtk_box_set_spacing (GTK_BOX (vbox), 6);
+ gtk_box_set_spacing (GTK_BOX (vbox), 6);
entry = gtk_entry_new ();
gtk_entry_set_text (GTK_ENTRY (entry), default_string);
@@ -82,14 +82,14 @@ e_request_string (GtkWindow *parent,
gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
gtk_box_pack_start (GTK_BOX (vbox), entry, TRUE, TRUE, 3);
- atk_object_set_description (gtk_widget_get_accessible (entry), prompt);
+ atk_object_set_description (gtk_widget_get_accessible (entry), prompt);
gtk_widget_grab_focus (entry);
-
+
gtk_widget_show (prompt_label);
gtk_widget_show (entry);
gtk_widget_show (dialog);
-
+
switch (gtk_dialog_run (GTK_DIALOG (dialog))) {
case GTK_RESPONSE_OK:
text = g_strdup (gtk_entry_get_text (GTK_ENTRY (entry)));
@@ -100,6 +100,6 @@ e_request_string (GtkWindow *parent,
}
gtk_widget_destroy (dialog);
-
+
return text;
}