[Gnucash-changes] r12004 - gnucash/trunk - Remove unused functions.
David Hampton
hampton at cvs.gnucash.org
Sun Nov 20 23:54:25 EST 2005
Author: hampton
Date: 2005-11-20 23:54:24 -0500 (Sun, 20 Nov 2005)
New Revision: 12004
Trac: http://svn.gnucash.org/trac/changeset/12004
Modified:
gnucash/trunk/ChangeLog
gnucash/trunk/src/gnome-utils/gnc-gui-query.c
gnucash/trunk/src/gnome-utils/gnc-gui-query.h
Log:
Remove unused functions.
Modified: gnucash/trunk/ChangeLog
===================================================================
--- gnucash/trunk/ChangeLog 2005-11-21 04:43:41 UTC (rev 12003)
+++ gnucash/trunk/ChangeLog 2005-11-21 04:54:24 UTC (rev 12004)
@@ -1,5 +1,7 @@
2005-11-20 David Hampton <hampton at employees.org>
+ * src/gnome-utils/gnc-gui-query.[ch]: Remove unused functions.
+
* src/gnome/gnc-split-reg.c: Update dialogs to give them a Gtk2
HIG look and feel.
Modified: gnucash/trunk/src/gnome-utils/gnc-gui-query.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gui-query.c 2005-11-21 04:43:41 UTC (rev 12003)
+++ gnucash/trunk/src/gnome-utils/gnc-gui-query.c 2005-11-21 04:54:24 UTC (rev 12004)
@@ -449,82 +449,6 @@
va_end(args);
}
-
-/********************************************************************\
- * gnc_generic_dialog_common *
- * display a message, and asks the user to choose from a *
- * number of selections. *
- * *
- * NOTE: This function does not return until the dialog is closed *
- * *
- * Args: parent - the parent window *
- * type - type of dialog to display (use gnome constants) *
- * buttons - Names of the buttons to display *
- * format - the format string for the message to display *
- * This is a standard 'printf' style string. *
- * args - a pointer to the first argument for the format *
- * string. *
-\********************************************************************/
-#define MAX_BUTTONS 5
-static int
-gnc_generic_dialog_common(gncUIWidget parent, const char *type,
- const char **buttons_in,
- const gchar *format, va_list args)
-{
- GtkWidget *verify_box = NULL;
- const gchar *buttons[MAX_BUTTONS+1];
- gchar *buffer;
- gint i;
-
- /* Translate the buttons */
- for (i = 0; (i < MAX_BUTTONS) && buttons_in[i]; i++) {
- buttons[i] = gettext(buttons_in[i]);
- }
- g_assert(i < MAX_BUTTONS);
- buttons[i] = NULL;
-
- buffer = g_strdup_vprintf(format, args);
- verify_box = gnome_message_box_newv(buffer, type, buttons);
- g_free(buffer);
-
- if (parent != NULL)
- gnome_dialog_set_parent(GNOME_DIALOG(verify_box), GTK_WINDOW(parent));
-
- gnome_dialog_set_default(GNOME_DIALOG(verify_box), 0);
-
- return (gnome_dialog_run_and_close(GNOME_DIALOG(verify_box)));
-}
-
-int
-gnc_generic_question_dialog(GtkWidget *parent, const char **buttons,
- const gchar *format, ...)
-{
- int result;
- va_list args;
-
- va_start(args, format);
- result = gnc_generic_dialog_common(parent,
- GNOME_MESSAGE_BOX_QUESTION,
- buttons, format, args);
- va_end(args);
- return(result);
-}
-
-int
-gnc_generic_warning_dialog(GtkWidget *parent, const char **buttons,
- const char *format, ...)
-{
- int result;
- va_list args;
-
- va_start(args, format);
- result = gnc_generic_dialog_common(parent,
- GNOME_MESSAGE_BOX_WARNING,
- buttons, format, args);
- va_end(args);
- return(result);
-}
-
static void
gnc_choose_radio_button_cb(GtkWidget *w, gpointer data)
{
Modified: gnucash/trunk/src/gnome-utils/gnc-gui-query.h
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-gui-query.h 2005-11-21 04:43:41 UTC (rev 12003)
+++ gnucash/trunk/src/gnome-utils/gnc-gui-query.h 2005-11-21 04:54:24 UTC (rev 12004)
@@ -39,12 +39,4 @@
gnc_error_dialog(GtkWidget *parent,
const char *format, ...) G_GNUC_PRINTF (2, 3);
-extern int
-gnc_generic_question_dialog(GtkWidget *parent, const char **buttons,
- const char *format, ...) G_GNUC_PRINTF (3, 4);
-
-extern int
-gnc_generic_warning_dialog(GtkWidget *parent, const char **buttons,
- const char *format, ...) G_GNUC_PRINTF (3, 4);
-
#endif
More information about the gnucash-changes
mailing list