From cbf5c62ee8d0bf9d1529f65a1baa25c9a8ff46af Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 12 Sep 2009 16:33:07 -0500 Subject: Bug 217066 - Rename folders directly inside folder list --- e-util/Makefile.am | 2 -- e-util/e-request.c | 99 ------------------------------------------------------ e-util/e-request.h | 33 ------------------ 3 files changed, 134 deletions(-) delete mode 100644 e-util/e-request.c delete mode 100644 e-util/e-request.h (limited to 'e-util') diff --git a/e-util/Makefile.am b/e-util/Makefile.am index e5c0886735..2f6602f9f0 100644 --- a/e-util/Makefile.am +++ b/e-util/Makefile.am @@ -64,7 +64,6 @@ eutilinclude_HEADERS = \ e-plugin.h \ e-plugin-ui.h \ e-profile-event.h \ - e-request.h \ e-signature.h \ e-signature-list.h \ e-signature-utils.h \ @@ -106,7 +105,6 @@ libeutil_la_SOURCES = \ e-plugin.c \ e-print.c \ e-profile-event.c \ - e-request.c \ e-signature.c \ e-signature-list.c \ e-signature-utils.c \ diff --git a/e-util/e-request.c b/e-util/e-request.c deleted file mode 100644 index 58784ee1ae..0000000000 --- a/e-util/e-request.c +++ /dev/null @@ -1,99 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Ettore Perazzoli - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifdef HAVE_CONFIG_H -#include -#endif - -#include "e-request.h" - - -/** - * e_request_string: - * @parent: parent window, or %NULL - * @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. - **/ -gchar * -e_request_string (GtkWindow *parent, - const gchar *title, - const gchar *prompt, - const gchar *default_string) -{ - GtkWidget *prompt_label; - gchar *text; - 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, - GTK_STOCK_OK, GTK_RESPONSE_OK, - NULL); - 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); - - vbox = gtk_dialog_get_content_area (GTK_DIALOG (dialog)); - - 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); - - entry = gtk_entry_new (); - gtk_entry_set_text (GTK_ENTRY (entry), default_string); - gtk_editable_select_region (GTK_EDITABLE (entry), 0, -1); - 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); - - 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))); - break; - default: - text = NULL; - break; - } - - gtk_widget_destroy (dialog); - - return text; -} diff --git a/e-util/e-request.h b/e-util/e-request.h deleted file mode 100644 index 63eacdf8bb..0000000000 --- a/e-util/e-request.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2 of the License, or (at your option) version 3. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with the program; if not, see - * - * - * Authors: - * Ettore Perazzoli - * - * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) - * - */ - -#ifndef E_REQUEST_H -#define E_REQUEST_H - -#include - -gchar *e_request_string (GtkWindow *parent, - const gchar *title, - const gchar *prompt, - const gchar *default_string); - -#endif -- cgit v1.2.3