Update of /cvsroot/evms/evms2/engine/ui/gtk In directory 23jxhf1.ch3.sourceforge.com:/tmp/cvs-serv24300 Modified Files: activation.c add.c backup.c commit.c container_cb.c create.c delete.c fsutils.c main.c main_window_cb.c message.c mount.c move.c plugin_cb.c reopen.c resize.c segment_cb.c selection_cb.c setinfo.c support.c task.c thing.c transfer.c unassign.c value.c views.c volume_cb.c weblinks.c widget.c Log Message: Cleanup compiler warnings. Added bonus: My editor cleans up trailing whitespace. Index: message.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/message.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- message.c 9 Apr 2007 15:58:57 -0000 1.8 +++ message.c 23 Jan 2009 00:06:25 -0000 1.9 @@ -4,18 +4,18 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - * + * * Module: message.c */ @@ -45,11 +45,11 @@ * box for a multiple choice message box has been changed. * We simply determine the index of the new selection from * the choices array and set the answer index appropriately. - * + * * Entry: * editable - the text entry widget of the combo box - * args - address of message_args_t struct - * + * args - address of message_args_t struct + * * Exit: * Updates the answer index to the index of the current selection. * @@ -86,17 +86,17 @@ * This routine is invoked when a message window is * being destroyed. We either signal a blocking thread * to wakeup or exit an inner event loop. - * + * * Entry: * window - the object that received the destroy signal - * args - address of message_args_t struct - * + * args - address of message_args_t struct + * * Exit: * Signals a wakeup on any thread waiting for our destruction * or exits an inner or main event loop. * */ -void on_message_window_destroy(GtkObject * window, message_args_t * args) +void on_message_window_destroy(GtkObject * UNUSED(window), message_args_t * args) { if (args->wakeup_cond) g_cond_signal(args->wakeup_cond); @@ -120,23 +120,23 @@ * gboolean on_message_window_delete_event (GtkWidget *, message_args_t *args) * * Description: - * This routine is invoked when a message window + * This routine is invoked when a message window * received the delete event from the window * manager. We ignore the delete event and hide - * instead if the hide window boolean in the + * instead if the hide window boolean in the * args is TRUE. - * + * * Entry: * window - the window that received the delete-event signal - * args - address of message_args_t struct - * + * args - address of message_args_t struct + * * * Exit: * Allows a destroy of the window or disallows the destroy * aignal and simply hides the window. * */ -gboolean on_message_window_delete_event(GtkWidget * window, GdkEvent * event, message_args_t * args) +gboolean on_message_window_delete_event(GtkWidget * window, GdkEvent * UNUSED(event), message_args_t * args) { gboolean prevent_window_destruction = FALSE; @@ -160,10 +160,10 @@ * signaling any blocked thread that we are done * or simply calls gtk_main_quit () to exit any * nested GTK event loop. - * + * * Entry: * button - address of the GtkButton widget - * args - address of message_args_t struct + * args - address of message_args_t struct * * Exit: * Sets answer and destroys parent window. @@ -181,8 +181,8 @@ * void on_message_clear_button_clicked (GtkButton *, GtkText *) * * Description: - * This routine - * + * This routine + * * Entry: * button - address of the GtkButton widget * text - address of the GtkText widget @@ -191,7 +191,7 @@ * Clears the text in the message window. * */ -void on_message_clear_button_clicked(GtkButton * button, GtkText * text) +void on_message_clear_button_clicked(GtkButton * UNUSED(button), GtkText * text) { gtk_text_backward_delete(text, gtk_text_get_length(text)); } @@ -205,7 +205,7 @@ * as the signal handler for the "clicked" signal for the OK button * located on the informational message window. It decides which to * use depending on the hide_window argument. - * + * * Entry: * ok_button - address of info message OK button * args - address of message_args_t struct @@ -236,7 +236,7 @@ * work as part of a simple set of buttons message window. The * criteria is that there are no more than MAX_MESSAGE_BUTTONS * choices and the text length is short enough to fit in the buttons. - * + * * Entry: * args - address of message_args_t struct * @@ -253,7 +253,7 @@ choices = args->choices; - /* + /* * See if count exceeds our max */ @@ -464,7 +464,7 @@ * This routine creates a choice button, associates its answer * index with it, places it in the button box, connects the * "clicked" signal handler and sets it as default if necessary. - * + * * Entry: * index - choice index * hbuttonbox - the button box container to add the button to @@ -507,7 +507,7 @@ * in the button box. If the button has the label text of "Cancel", * it is placed just left of the affirmative button. We also add * the standard pixmap for "Cancel" while we're here. - * + * * Entry: * button - the button to reorder if necessary * box - the button box containing the button @@ -551,7 +551,7 @@ * Description: * This routine creates a simple popup window that contains * the text of the given message and one to three buttons labeled - * with the short text from the plugin. The focus is placed on the + * with the short text from the plugin. The focus is placed on the * button corresponding to the initial value of the "answer" parameter. * It essentially for boolean conditions but the plugin supplies * the button text. @@ -782,7 +782,7 @@ * void on_message_window_realize (GtkWidget *window, gpointer user_data) * * Description: - * This routine attempts to raise a message window to the top of the + * This routine attempts to raise a message window to the top of the * window stack when it gets realized. * * Entry: @@ -792,7 +792,7 @@ * Exit: * The message window is raised to the top of the window stack. */ -void on_message_window_realize(GtkWidget * window, gpointer user_data) +void on_message_window_realize(GtkWidget * window, gpointer UNUSED(user_data)) { GtkWidget *main_window; @@ -884,7 +884,7 @@ * Description: * This routine is called by the engine for having * us display simple messages or get simple responses - * from a set of choices (strings). + * from a set of choices (strings). * * If this callback is running on a thread other than * the main thread, we schedule an idle function to @@ -895,12 +895,12 @@ * * Informational-only message are always dispatched * asynchronously though. That is, we create/redisplay - * the window and return from this callback to the + * the window and return from this callback to the * engine immediately. * * Entry: * text - the message string to display - * answer - the index of the choice selected + * answer - the index of the choice selected * (initialized with the default selection) * choices - an optional array of choices the user * can select from @@ -953,9 +953,9 @@ gtk_idle_add((GtkFunction) display_message_window_from_main_thread, args); - /* + /* * If this is not an information message then we - * will be blocking until one of the window + * will be blocking until one of the window * message handlers clears a condition to let * us continue to return control to the engine. */ @@ -1023,10 +1023,10 @@ * This routine attempts to redisplay the messages window * if it exists. Otherwise, it displays a popup window * that tells the users that no messages exist to be shown. - * + * * Entry: * None - * + * * Exit: * Re-displays the messages window or displays an no messages * window. @@ -1049,10 +1049,10 @@ * This routine attempts to make the message window a transient * window of the given window. It hopefully allows the suggests * to the window manager to place it on top of the given window. - * + * * Entry: * parent - the window id of the parent for the message window - * + * * Exit: * The message window hopefully is placed on top of the parent * window. Index: setinfo.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/setinfo.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- setinfo.c 3 Aug 2004 18:41:31 -0000 1.8 +++ setinfo.c 23 Jan 2009 00:06:25 -0000 1.9 @@ -111,7 +111,7 @@ * is displayed. * */ -void on_set_info_button_clicked(GtkButton * button, gpointer user_data) +void on_set_info_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { GList *window_list; GtkWidget *clist; @@ -226,7 +226,7 @@ * See description. * */ -void on_modify_thing_properties_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_modify_thing_properties_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { object_type_t type; Index: transfer.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/transfer.c,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- transfer.c 20 Aug 2008 23:32:46 -0000 1.9 +++ transfer.c 23 Jan 2009 00:06:25 -0000 1.10 @@ -84,7 +84,7 @@ * See description. * */ -void on_remove_thing_from_container_button_clicked(GtkButton * button, gpointer user_data) +void on_remove_thing_from_container_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { GtkCList *clist; object_handle_t handle; @@ -138,7 +138,7 @@ * See description. * */ -void on_remove_thing_from_container_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_remove_thing_from_container_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { gint rc; object_handle_t handle = GPOINTER_TO_UINT(user_data); @@ -280,7 +280,7 @@ handle_array_t *objects; rc = evms_get_acceptable_objects(task, &objects); if (rc == SUCCESS) { - gint i; + uint i; for (i = 0; i < objects->count; i++) { if (objects->handle[i] == handle) { @@ -315,7 +315,7 @@ * array that can removed from their consuming container * */ -void on_remove_thing_from_container_clist_realize(GtkWidget * widget, gpointer user_data) +void on_remove_thing_from_container_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gint rc = 0; GtkCList *clist = GTK_CLIST(widget); Index: support.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/support.c,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- support.c 4 Jan 2008 18:17:48 -0000 1.11 +++ support.c 23 Jan 2009 00:06:25 -0000 1.12 @@ -4,16 +4,16 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Module: support.c @@ -52,7 +52,7 @@ * through the children of a higher-level widget such * as the top-level window or any parent of the widget * we want. - * + * * Entry: * widget - address of an ancestor of the widget we want * widget_name - pointer to the string with the name of the @@ -90,7 +90,7 @@ * Description: * This routine dismisses the parent containing the button * that was clicked. - * + * * Entry: * button - address of the GtkButton widget * user_data - address of user data bound with signal (not used) @@ -99,7 +99,7 @@ * Dismisses/destroys parent window of button * */ -void on_button_clicked_destroy_window(GtkButton * button, gpointer user_data) +void on_button_clicked_destroy_window(GtkButton * button, gpointer UNUSED(user_data)) { GtkWidget *window; @@ -115,13 +115,13 @@ /* * * void display_not_implemented_yet_popup (void) - * + * * Description: * This routine display a small popup that indicates * that the function selected has not been implemented * yet. Eventually this function will become dormant * when we reach a fully functional implementation. - * + * * Entry: * Nothing * @@ -137,14 +137,14 @@ /* * * void display_popup_window (gchar *, gchar *) - * + * * Description: * This routine display a small popup that suitable * for short informational messages. - * + * * Entry: * title - address of string containing window title - * message - address of string containing window text + * message - address of string containing window text * * Exit: * Popup is displayed awaiting dismissal. @@ -194,11 +194,11 @@ /* * * void display_help_window (GtkWindow *, gchar *) - * + * * Description: * This routine display a small popup that suitable * for displaying help. - * + * * Entry: * parent - window that we should become a transient window of * text - string containing text for help text box @@ -321,17 +321,17 @@ /* * * inline void destroy_window_list (GList *window_list) - * + * * Description: * This routine destroys the windows in a list starting * at the given link It moves on to the next link as it * removes the current link. - * + * * Entry: * window_list - list of windows to destroy * * Exit: - * Windows in the list are destroyed and the + * Windows in the list are destroyed and the * corresponding links are removed. * */ @@ -353,12 +353,12 @@ /* * * void complete_display_results_window_work (GtkWidget *, gchar *, GSList *, gboolean) - * + * * Description: * This routine completes the work resulting from displaying a results * window. This includes making sure that the message window is stacked * above this window. - * + * * Entry: * window - results window id * message - status bar message string @@ -388,16 +388,16 @@ /* * * GtkWidget* display_results_window (gint, gchar *, gchar *, GSList *, gboolean, GtkWidget *) - * + * * Description: * This routine display a dialog that provides feedback * on the results of a certain operation. The caller - * can provide the window title,an optional message, + * can provide the window title,an optional message, * a list of windows that should be destroyed - * after showing the results window as well as the + * after showing the results window as well as the * actual error code to be used in pulling a descriptive * message for the return code. - * + * * Entry: * rc - the return code (the results of an operation) * title - optional string to use as the title @@ -430,7 +430,7 @@ } /* - * Create the results window and make any modifications + * Create the results window and make any modifications * wanted by caller before showing it. */ @@ -483,16 +483,16 @@ /* * * gboolean editable_field_is_blank (GtkEditable *editable) - * + * * Description: * This routine determines if the given editable widget * has any non-whitespace characters in it. - * + * * Entry: * editable - address of GtkEditable widget to check * * Exit: - * Return TRUE if widget has no viable characters + * Return TRUE if widget has no viable characters * or FALSE if contains non-whitespace characters * */ @@ -514,13 +514,13 @@ /* * * gboolean check_for_empty_list_when_exposed (GtkCList *, GdkEventExpose *, gpointer) - * + * * Description: * This routine determines if a list to be exposed (drawn) * contains any rows. If empty, we append a blank row * and set the some text indicating the list was not * populated. - * + * * Entry: * clist - the list we want to check to see if empty * event - pointer to the expose event structure @@ -531,11 +531,11 @@ * event handlers execute. * */ -gboolean check_for_empty_list_when_exposed(GtkCList * clist, GdkEventExpose * event, +gboolean check_for_empty_list_when_exposed(GtkCList * clist, GdkEventExpose * UNUSED(event), gpointer user_data) { /* - * If the list is empty, append a blank row and set the text at the + * If the list is empty, append a blank row and set the text at the * column where we were instructed to place the empty list text at. Also, * make the list insensitive to avoid the row selection handler from * kicking in on a bogus list. @@ -559,9 +559,9 @@ * void set_selection_window_instructions_label (GtkWidget *, gchar *) * * Description: - * This routine sets the text in the selection dialog window that + * This routine sets the text in the selection dialog window that * instructs the user what to do. - * + * * Entry: * window - the selection dialog window id * next_button_text - the text to be displayed on the "Next" button @@ -595,7 +595,7 @@ * Description: * This routine replaces whatever is in the next button with a label * containing the given text. - * + * * Entry: * next_button - the button id * text - text for the label to be placed in the button @@ -634,12 +634,12 @@ * GtkSignalFunc, GtkSignalFunc, * GtkSignalFunc, GtkSignalFunc, * gpointer) - * + * * Description: * This routine creates the generic selection dialog * and connects the appropriate signal handlers that will * initiate the operation actions. - * + * * Entry: * window_title - title for the selection window * next_button_text - label text for next button (default is "Next") @@ -706,9 +706,9 @@ /* * Before we show the window, setup the signal handlers - * that will populate the clist when the clist is realized. + * that will populate the clist when the clist is realized. * Also initialize the "Cancel" button to dismiss the window - * when no signal handler is provided. Setup the "Next" + * when no signal handler is provided. Setup the "Next" * button with the signal handler given. The "Next" * button's sensitivity is reliant on a row selection. * There is a default set of signal handlers that change @@ -772,11 +772,11 @@ /* * * void display_selection_window_results (GtkWidget *, gint, gchar *, gchar *) - * + * * Description: * This routine displays the results window and destroys the selection * window if the operation was successful. - * + * * Entry: * widget - a widget to help us lookup the selection window * rc - the return code for the selection window operation @@ -800,7 +800,7 @@ * Call the function that displays the window with everything * we want to say about the outcome of the operation. Provide * the selection_window in the window_list to have it destroyed - * it after popping up the results_window. + * it after popping up the results_window. */ selection_window = gtk_widget_get_toplevel(widget); @@ -877,10 +877,10 @@ /* * * inline void set_status_bar_message (const gchar *) - * + * * Description: * This routine sets the message in the main window status bar. - * + * * Entry: * message - the string to push onto the statusbar * @@ -899,11 +899,11 @@ /* * * inline void set_status_bar_message (const gchar *) - * + * * Description: * This routine removes the current message from the * main window status bar. - * + * * Entry: * None * @@ -922,14 +922,14 @@ /* * * gpointer get_single_select_current_row_data (GtkCList *) - * + * * Description: * This routine is a wrapper call to get_clist_selection_data() * to allow retrieving the user data for single selected row. - * + * * Entry: - * clist - address of GtkCList - + * clist - address of GtkCList + * Exit: * The address of the user data associated with the currently * selected row in the list, otherwise NULL is returned. @@ -954,21 +954,21 @@ /* * - * GSList* get_clist_selection_data (GtkCList *) - * + * GSList* get_clist_selection_data (GtkCList *) + * * Description: * This routine builds a singly linked list containing the - * user data corresponding to each row selected. When + * user data corresponding to each row selected. When * building the list, we walk the selection list in reverse - * (last to first) in order to allow optimization in + * (last to first) in order to allow optimization in * prepending items to the head of the list rather than * appending to the end. * * NOTE: The caller should issue a g_slist_free() on the * GSList when it is no longer needed. The user * data in the list should be considered read-only - * items. - * + * items. + * * Entry: * clist - address of GtkCList * @@ -1019,10 +1019,10 @@ * * Description: * This routine searches the window_list for the current window - * then walks the list back from there to find the id of a + * then walks the list back from there to find the id of a * previous window in the list to redisplay. The current window * is hidden prior to showing the previous window. - * + * * Entry: * button - address of the GtkButton widget * user_data - user data (not used) @@ -1031,7 +1031,7 @@ * The current window is hidden and the previous one is displayed. * */ -void on_button_clicked_display_prev_window(GtkButton * button, gpointer user_data) +void on_button_clicked_display_prev_window(GtkButton * button, gpointer UNUSED(user_data)) { GList *window_list; @@ -1077,7 +1077,7 @@ * If there is no window list, this routine simply calls the * on_button_clicked_destroy_window () routine to destroy the * button's parent window only. - * + * * Entry: * button - address of the GtkButton widget * user_data - user data (not used) @@ -1104,7 +1104,7 @@ * Description: * This routine sets the version string in the about * box to the compiled version information. - * + * * Entry: * widget - the version label widget * user_data - user data (not used) @@ -1113,7 +1113,7 @@ * The about label is updated with the version string. * */ -void on_version_label_realize(GtkWidget * widget, gpointer user_data) +void on_version_label_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gchar *version; @@ -1131,7 +1131,7 @@ * Description: * This routine is called whenever a row is selected on * the read-only clist so that the selection gets undone. - * + * * Entry: * clist - address of GtkCList object that received select-row signal * row - index of row selected @@ -1144,7 +1144,7 @@ * */ void on_readonly_clist_select_row(GtkCList * clist, gint row, gint column, - GdkEventButton * event, gpointer user_data) + GdkEventButton * UNUSED(event), gpointer UNUSED(user_data)) { gtk_clist_unselect_row(clist, row, column); } @@ -1156,9 +1156,9 @@ * Description: * This routine calls g_free() for each data item * in the list and then removes the GSList element. - * It continues this until the entire list is + * It continues this until the entire list is * destroyed. - * + * * Entry: * list - the address of head of the list * @@ -1180,8 +1180,8 @@ * * Description: * This routine is called to display or remove messages - * on the main window status bar for menu items. - * + * on the main window status bar for menu items. + * * Entry: * widget - the menu item that is getting or losing the pointer focus * event - the event->type will tell whether the pointer is entering @@ -1193,7 +1193,7 @@ * Always returns FALSE * */ -gboolean update_statusbar_message(GtkWidget * widget, GdkEventCrossing * event, gpointer user_data) +gboolean update_statusbar_message(GtkWidget * UNUSED(widget), GdkEventCrossing * event, gpointer user_data) { if (event->type == GDK_ENTER_NOTIFY) set_status_bar_message(user_data); @@ -1209,11 +1209,11 @@ * * Description: * This routine is called to display or remove messages - * on the main window status bar for menu items. - * + * on the main window status bar for menu items. + * * Entry: * widget - the menu item that is getting or losing the keyboard focus - * event - the event->in boolean will tell us whether we are getting + * event - the event->in boolean will tell us whether we are getting * or losing keyboard focus * user_data - if getting focus, this should be a pointer to a string with * the status message @@ -1222,7 +1222,7 @@ * Always returns FALSE * */ -gboolean on_menu_item_focus_event(GtkWidget * widget, GdkEventFocus * event, gpointer user_data) +gboolean on_menu_item_focus_event(GtkWidget * UNUSED(widget), GdkEventFocus * event, gpointer user_data) { if (event->in) set_status_bar_message(user_data); @@ -1240,7 +1240,7 @@ * This routine allows setting the text for the selection window * columns. Only those for a which a non-NULL string pointer is given * are changed. - * + * * Entry: * clist - the id of the selection window clist * size_col_text - string for size column or NULL to not change @@ -1272,7 +1272,7 @@ * the pixmap widget from a filename. Instead, it calls the a helper * routine that creates the pixmap widget from static information * already part of the program. - * + * * Entry: * widget - reference widget (not used) * name - pixmap filename @@ -1281,21 +1281,21 @@ * Returns a GtkPixmap widget or NULL if the name was incorrect. * */ -GtkWidget *create_pixmap(GtkWidget * widget, const gchar * name) +GtkWidget *create_pixmap(GtkWidget * UNUSED(widget), const gchar * name) { return create_pixmap_widget(name); } /* * - * inline void add_pixmap_label_to_button (GtkWidget *, GdkPixmap *, GdkBitmap *, + * inline void add_pixmap_label_to_button (GtkWidget *, GdkPixmap *, GdkBitmap *, * const gchar *, GtkAccelGroup *) * * Description: * This routine creates a horizontal box and places a pixmap in * one cell and label in the other. It then places the hbox in * the button provided. - * + * * Entry: * button - the button to contain the pixmap and label * pixmap - the GDK pixmap to create the GtkPixmap from @@ -1349,7 +1349,7 @@ * This routine allows widening or narrowing the width of a * column in a GtkCList. The delta is added to the current * width of the column. - * + * * Entry: * clist - the address of the GtkCList containing the column * column - the index of the column to effect @@ -1374,7 +1374,7 @@ * This routine returns either the default foreground and background * colors for a GtkCList row or an alternate set of colors (currently * a light gray background with a black foreground). - * + * * Entry: * clist - the address of the GtkCList * alternate - TRUE if the alternate color is to be returned @@ -1425,7 +1425,7 @@ * a row in a GtkCList. The choices are default style background * and foreground for normal color or light gray background * with black foreground for alternate color. - * + * * Entry: * clist - the address of the GtkCList * row - the row number of the row to change @@ -1455,7 +1455,7 @@ * a row in a GtkCList. The choices are default style background * and foreground for normal color or light gray background * with black foreground for alternate color. - * + * * Entry: * clist - the address of the GtkCList * row - the row number of the row to change @@ -1484,7 +1484,7 @@ * This routine is basically a wrapper function to gtk_clist_append * that allows for alternating the row background depending on * whether the row is even or odd. - * + * * Entry: * clist - the address of the GtkCList to append row to * text - the array of text strings for columns on row @@ -1513,7 +1513,7 @@ * Description: * This routine walks all of the viewable nodes in a ctree * and sets every other nodes color to an alternating color. - * + * * Entry: * ctree - the address of the GtkCTree to set alternating colors * @@ -1547,7 +1547,7 @@ * Description: * This routine sets the normal foreground color of a widget. * It is typically called for label widgets. - * + * * Entry: * widget - the widget to have its foreground color changed * color_string - the color, e.g. "red" or "#FF0000" (see rgb.txt) @@ -1623,7 +1623,7 @@ * This routine dismisses the parent containing the button * that was clicked and calls gtk_main_quit() to exit the * current event loop. - * + * * Entry: * button - address of the GtkButton widget * user_data - address of user data bound with signal (not used) @@ -1642,17 +1642,17 @@ /* * * GtkWidget* display_results_and_exit (gint, gchar *, gchar *, GSList *, gboolean, GtkWidget *) - * + * * Description: * This routine display a dialog that provides feedback * on the results of a certain operation. The caller - * can provide the window title,an optional message, + * can provide the window title,an optional message, * a list of windows that should be destroyed - * after showing the results window as well as the + * after showing the results window as well as the * actual error code to be used in pulling a descriptive * message for the return code. It also exits the * current event loop when the user clicks on OK button. - * + * * Entry: * rc - the return code (the results of an operation) * title - optional string to use as the title Index: weblinks.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/weblinks.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- weblinks.c 4 May 2004 22:13:12 -0000 1.1 +++ weblinks.c 23 Jan 2009 00:06:25 -0000 1.2 @@ -149,7 +149,7 @@ } } -static void on_go_button_clicked(GtkButton * button, gchar * url) +static void on_go_button_clicked(GtkButton * UNUSED(button), gchar * url) { display_url_in_browser(url); } Index: volume_cb.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/volume_cb.c,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- volume_cb.c 4 Jan 2008 18:17:49 -0000 1.21 +++ volume_cb.c 23 Jan 2009 00:06:25 -0000 1.22 @@ -56,7 +56,7 @@ * See description. * */ -void on_create_compat_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_create_compat_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { gchar *error_msg = _("An error was encountered attempting to create the volume."); gchar *success_msg = _("The volume was successfully created."); @@ -81,7 +81,7 @@ * Selection list populated with sysdata objects * */ -void on_create_compat_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_create_compat_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { on_create_volume_clist_realize(widget, TRUE); } @@ -104,7 +104,7 @@ * See description. * */ -void on_create_evms_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_create_evms_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { gchar *error_msg = _("An error was encountered attempting to create the volume."); gchar *success_msg = _("The volume was successfully created."); @@ -129,7 +129,7 @@ * Selection list populated with suitable toplevel storage objects * */ -void on_create_evms_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_create_evms_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { on_create_volume_clist_realize(widget, FALSE); } @@ -295,7 +295,7 @@ * See description. * */ -void on_create_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_create_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -321,7 +321,7 @@ * See description. * */ -void on_create_compatibility_volume_popup_menu_item_activate(GtkMenuItem * menuitem, +void on_create_compatibility_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -425,7 +425,7 @@ * their properties changed. * */ -void on_modify_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_modify_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gint rc; GtkCList *clist = GTK_CLIST(widget); @@ -439,7 +439,7 @@ if (rc != SUCCESS) { log_error("%s: evms_get_volume_list() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (volumes->count == 1); for (i = 0; i < volumes->count; i++) { @@ -475,7 +475,7 @@ * Returns nothing. * */ -void on_volume_name_entry_changed(GtkEditable * editable, gpointer user_data) +void on_volume_name_entry_changed(GtkEditable * editable, gpointer UNUSED(user_data)) { GtkWidget *modify_button = lookup_widget(GTK_WIDGET(editable), "modify_button"); @@ -653,7 +653,7 @@ * See description. * */ -void on_modify_volume_selection_button_clicked(GtkButton * button, gpointer user_data) +void on_modify_volume_selection_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { GList *window_list; GtkWidget *clist; @@ -717,7 +717,7 @@ * See description. * */ -void on_modify_volume_help_button_clicked(GtkButton * button, gpointer user_data) +void on_modify_volume_help_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { GtkWidget *parent; @@ -740,7 +740,7 @@ * See description. * */ -void on_modify_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_modify_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -1030,7 +1030,7 @@ * Returns nothing. * */ -void on_display_volume_details_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_display_volume_details_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { gint rc; object_handle_t handle = GPOINTER_TO_UINT(user_data); @@ -1075,7 +1075,7 @@ * user to try again. * */ -void on_convert_to_evms_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_convert_to_evms_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { gchar *error_msg; gchar *success_msg; @@ -1129,7 +1129,7 @@ * be converted to EVMS volumes. * */ -void on_convert_to_evms_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_convert_to_evms_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gint rc; GtkCList *clist = GTK_CLIST(widget); @@ -1143,7 +1143,7 @@ if (rc != SUCCESS) { log_error("%s: evms_get_volume_list() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (volumes->count == 1); for (i = 0; i < volumes->count; i++) { @@ -1176,7 +1176,7 @@ * be converted to compatibility volumes. * */ -void on_convert_to_compatibility_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_convert_to_compatibility_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gint rc; GtkCList *clist = GTK_CLIST(widget); @@ -1190,7 +1190,7 @@ if (rc != SUCCESS) { log_error("%s: evms_get_volume_list() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (volumes->count == 1); for (i = 0; i < volumes->count; i++) { @@ -1285,7 +1285,7 @@ * See description. * */ -void on_convert_to_evms_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_convert_to_evms_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -1311,7 +1311,7 @@ * is displayed. * */ -void on_convert_to_compatibility_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_convert_to_compatibility_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { gchar *error_msg; gchar *success_msg; @@ -1350,7 +1350,7 @@ * See description. * */ -void on_convert_to_compatibility_volume_popup_menu_item_activate(GtkMenuItem * menuitem, +void on_convert_to_compatibility_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -1396,7 +1396,7 @@ if (rc != SUCCESS) { log_error("%s: evms_get_plugin_list() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (plugins->count == 1); for (i = 0; i < plugins->count; i++) { @@ -1457,7 +1457,7 @@ * See description. * */ -void on_add_feature_to_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_add_feature_to_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -1488,7 +1488,7 @@ * have a feature added to them. * */ -void on_add_feature_to_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_add_feature_to_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { gint rc; GtkCList *clist = GTK_CLIST(widget); @@ -1502,7 +1502,7 @@ if (rc != SUCCESS) { log_error("%s: evms_get_volume_list() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (volumes->count == 1); for (i = 0; i < volumes->count; i++) { @@ -1535,7 +1535,7 @@ * See description. * */ -void on_volume_to_add_feature_to_button_clicked(GtkButton * button, gpointer user_data) +void on_volume_to_add_feature_to_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { GList *window_list; GtkCList *clist; @@ -1700,7 +1700,7 @@ * See description. * */ -void on_set_mount_options_button_clicked(GtkButton * button, GtkWidget * mount_window) +void on_set_mount_options_button_clicked(GtkButton * UNUSED(button), GtkWidget * mount_window) { GtkWidget *options_window; @@ -1889,7 +1889,7 @@ * See description. * */ -void on_mount_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_mount_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { int rc; gchar *mountpoint; @@ -1938,7 +1938,7 @@ * Selection list populated with volumes that can be mounted * */ -void on_mount_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_mount_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { populate_clist_for_mount_operation(GTK_CLIST(widget), MOUNT); } @@ -1958,7 +1958,7 @@ * See description. * */ -void on_mount_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_mount_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -1985,7 +1985,7 @@ * See description. * */ -void on_unmount_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_unmount_volume_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { int rc; GtkCList *clist; @@ -2019,7 +2019,7 @@ * See description. * */ -void on_unmount_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_unmount_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; @@ -2049,7 +2049,7 @@ * Selection list populated with volumes that can be unmounted * */ -void on_unmount_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_unmount_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { populate_clist_for_mount_operation(GTK_CLIST(widget), UNMOUNT); } @@ -2069,7 +2069,7 @@ * See description. * */ -void on_remount_volume_button_clicked(GtkButton * button, gpointer user_data) +void on_remount_volume_button_clicked(GtkButton * UNUSED(button), gpointer UNUSED(user_data)) { } @@ -2088,7 +2088,7 @@ * See description. * */ -void on_remount_volume_popup_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_remount_volume_popup_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer UNUSED(user_data)) { } @@ -2108,7 +2108,7 @@ * Selection list populated with volumes that can be re-mounted * */ -void on_remount_volume_clist_realize(GtkWidget * widget, gpointer user_data) +void on_remount_volume_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { populate_clist_for_mount_operation(GTK_CLIST(widget), REMOUNT); } Index: create.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/create.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- create.c 3 Aug 2004 18:41:30 -0000 1.7 +++ create.c 23 Jan 2009 00:06:25 -0000 1.8 @@ -326,7 +326,7 @@ * Returns nothing. * */ -void on_create_from_freespace_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_create_from_freespace_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { plugin_handle_t plugin; object_handle_t handle = GPOINTER_TO_UINT(user_data); @@ -437,7 +437,7 @@ */ if (object->info.object.parent_objects == NULL || object->info.object.parent_objects->count == 0) { - gint i; + uint i; handle_array_t *plugins; plugins = get_all_feature_plugins_list(); @@ -673,7 +673,7 @@ * Returns nothing. * */ -void on_create_feature_object_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_create_feature_object_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { GtkWidget *window; Index: resize.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/resize.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- resize.c 4 Jan 2008 18:17:48 -0000 1.8 +++ resize.c 23 Jan 2009 00:06:25 -0000 1.9 @@ -130,7 +130,7 @@ log_error("%s: evms_get_shrink_points() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (shrink_points->count == 1); set_resize_points_clist_properties(clist, EVMS_Task_Shrink); @@ -173,7 +173,7 @@ log_error("%s: evms_get_expand_points() returned error code %d.\n", __FUNCTION__, rc); } else { - gint i; + uint i; gboolean is_selected = (expand_points->count == 1); set_resize_points_clist_properties(clist, EVMS_Task_Expand); @@ -414,7 +414,7 @@ * This window is hidden and another standard selection window is displayed. * */ -void on_expand_point_selection_button_clicked(GtkButton * button, gpointer user_data) +void on_expand_point_selection_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_point_selection_button_clicked(button, EVMS_Task_Expand); } @@ -437,7 +437,7 @@ * This window is hidden and another standard selection window is displayed. * */ -void on_shrink_point_selection_button_clicked(GtkButton * button, gpointer user_data) +void on_shrink_point_selection_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_point_selection_button_clicked(button, EVMS_Task_Shrink); } @@ -628,7 +628,7 @@ void add_expandable_objects_to_selection_clist(GtkCList * clist, handle_array_t * objects, gboolean objects_are_volumes) { - gint i; + uint i; gint row; gboolean is_selected = (objects->count == 1); @@ -670,7 +670,7 @@ void add_shrinkable_objects_to_selection_clist(GtkCList * clist, handle_array_t * objects, gboolean objects_are_volumes) { - gint i; + uint i; gint row; gboolean is_selected = (objects->count == 1); @@ -706,7 +706,7 @@ * and this window is hidden. * */ -void on_expand_thing_button_clicked(GtkButton * button, gpointer user_data) +void on_expand_thing_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_selection_button_clicked(button, EVMS_Task_Expand); } @@ -727,7 +727,7 @@ * The objects to consume are displayed. * */ -void on_expand_container_button_clicked(GtkButton * button, gpointer user_data) +void on_expand_container_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_point_selection_button_clicked(button, EVMS_Task_Expand); } @@ -748,7 +748,7 @@ * The objects to consume are displayed. * */ -void on_shrink_container_button_clicked(GtkButton * button, gpointer user_data) +void on_shrink_container_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_point_selection_button_clicked(button, EVMS_Task_Shrink); } @@ -770,7 +770,7 @@ * and this window is hidden. * */ -void on_shrink_thing_button_clicked(GtkButton * button, gpointer user_data) +void on_shrink_thing_button_clicked(GtkButton * button, gpointer UNUSED(user_data)) { on_resize_selection_button_clicked(button, EVMS_Task_Shrink); } @@ -874,7 +874,7 @@ * See description. * */ -void on_expand_thing_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_expand_thing_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { object_type_t type; @@ -945,7 +945,7 @@ * See description. * */ -void on_shrink_thing_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_shrink_thing_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { object_type_t type; Index: segment_cb.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/segment_cb.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- segment_cb.c 12 Nov 2003 20:44:01 -0000 1.3 +++ segment_cb.c 23 Jan 2009 00:06:25 -0000 1.4 @@ -4,16 +4,16 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Module: segment_cb.c @@ -30,11 +30,11 @@ /* * * void on_segment_manager_clist_realize (GtkWidget *, gpointer) - * + * * Description: * This routine populates the given GtkCList with the list * of segments managers to choose from. - * + * * Entry: * widget - address of the selections GtkCList widget * user_data - contains task action code for action to use list @@ -54,22 +54,22 @@ /* * * void on_unassign_segment_manager_clist_realize (GtkWidget *, gpointer) - * + * * Description: * This routine populates the given GtkCList with the list * objects that have a segment manager assigned to them that * can have it removed. - * + * * Entry: * widget - address of the selections GtkCList widget * user_data - address of user data bound with signal (not used) * * Exit: - * Selection list populated with storage object that can have a + * Selection list populated with storage object that can have a * segment removed from them. * */ -void on_unassign_segment_manager_clist_realize(GtkWidget * widget, gpointer user_data) +void on_unassign_segment_manager_clist_realize(GtkWidget * widget, gpointer UNUSED(user_data)) { on_unassign_parent_plugin_clist_realize(widget, EVMS_SEGMENT_MANAGER); } Index: delete.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/delete.c,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- delete.c 12 Nov 2003 20:44:01 -0000 1.6 +++ delete.c 23 Jan 2009 00:06:25 -0000 1.7 @@ -4,16 +4,16 @@ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or + * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. - * + * * 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 General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software + * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * Module: delete.c @@ -34,10 +34,10 @@ * void on_deletion_window_clist_select_row (GtkCList *, gint, gint, GdkEventButton *, gpointer) * * Description: - * This routine is called whenever a row is selected. + * This routine is called whenever a row is selected. * All we do is ensure that the "Delete" and "Recursive Delete" * buttons are sensitive to allow the operation to be initiated. - * + * * Entry: * clist - address of GtkCList object that received select-row signal * row - index of row selected @@ -49,8 +49,8 @@ * Returns nothing. * */ -void on_deletion_window_clist_select_row(GtkCList * clist, gint row, gint column, - GdkEventButton * event, gpointer user_data) +void on_deletion_window_clist_select_row(GtkCList * clist, gint UNUSED(row), gint UNUSED(column), + GdkEventButton * UNUSED(event), gpointer UNUSED(user_data)) { GtkWidget *delete_button = lookup_widget(GTK_WIDGET(clist), "selection_window_next_button"); GtkWidget *recursive_delete_button = @@ -70,11 +70,11 @@ * void on_deletion_window_clist_unselect_row (GtkCList *, gint, gint, GdkEventButton *, gpointer) * * Description: - * This routine is called whenever a row is unselected. + * This routine is called whenever a row is unselected. * All we do is ensure that the "Delete" and "Recursive Delete" - * buttons are not sensitive to disallow the operation from being + * buttons are not sensitive to disallow the operation from being * initiated until a choice is made. - * + * * Entry: * clist - address of GtkCList object that received unselect-row signal * row - index of row deselected @@ -86,8 +86,8 @@ * Returns nothing. * */ -void on_deletion_window_clist_unselect_row(GtkCList * clist, gint row, gint column, - GdkEventButton * event, gpointer user_data) +void on_deletion_window_clist_unselect_row(GtkCList * clist, gint UNUSED(row), gint UNUSED(column), + GdkEventButton * UNUSED(event), gpointer UNUSED(user_data)) { GtkWidget *delete_button = lookup_widget(GTK_WIDGET(clist), "selection_window_next_button"); GtkWidget *recursive_delete_button = @@ -110,7 +110,7 @@ * This creates the window used for deleting "things". It makes some minor * modifications to a standard selection window to reuse the "Prev" button * to mean "Recursive Delete". - * + * * Entry: * title - the text for the window title * clist_realize_handler - the handler to populate the selection list @@ -178,11 +178,11 @@ /* * * inline static void get_delete_result_messages (gboolean, object_type_t, gchar **, gchar **) - * + * * Description: * This routine returns the messages displayed to the user as the * result of a delete operation. - * + * * Entry: * recursive - TRUE if recursive delete * type - the object type being deleted @@ -190,7 +190,7 @@ * success_msg - address of string to point to success message * * Exit: - * + * * */ inline static void get_delete_result_messages(gboolean recursive, object_type_t type, @@ -237,17 +237,17 @@ * void delete_thing_button_clicked (GtkButton *, gboolean, object_type_t) * * Description: - * This routine initiates a single or recursive delete using the handle of the - * objects associated with rows selected. It then creates and + * This routine initiates a single or recursive delete using the handle of the + * objects associated with rows selected. It then creates and * displays the results popup which destroys both windows when dismissed. - * + * * Entry: * button - address of the GtkButton widget * recursive - TRUE if recursive delete wanted * type - the type of thing to delete (volume, container, storage object) * * Exit: - * Deletes one or more things and results window is displayed + * Deletes one or more things and results window is displayed * */ void delete_thing_button_clicked(GtkButton * button, gboolean recursive, object_type_t type) @@ -341,10 +341,10 @@ * Description: * This routine initiates the deletion of a thing. It uses the * handle of the object associated with the selected rows. - * + * * Entry: * button - address of the GtkButton widget - * user_data - + * user_data - * * Exit: * See description. @@ -361,12 +361,12 @@ * * Description: * This routine initiates the deletion of a thing and its deletable - * children. It uses the handle of the object associated with the + * children. It uses the handle of the object associated with the * selected rows. - * + * * Entry: * button - address of the GtkButton widget - * user_data - + * user_data - * * Exit: * See description. @@ -380,11 +380,11 @@ /* * * void on_delete_thing_clist_realize (GtkWidget *, gpointer) - * + * * Description: * This routine populates the given GtkCList with the list * of things that can be used on a delete operation. - * + * * Entry: * widget - address of the selections GtkCList widget * user_data - type of thing to delete (volume, container, object) @@ -446,10 +446,10 @@ * * Description: * This routine handles initiating the destruction of a "thing". - * The handle to the thing is received as the user data. We - * select the proper messages for the results screen and invoke + * The handle to the thing is received as the user data. We + * select the proper messages for the results screen and invoke * the routine that actually delete the thing. - * + * * Entry: * button - address of the GtkButton widget * user_data - object handle @@ -472,11 +472,11 @@ * * Description: * This routine handles initiating the destruction of a "thing" - * and all its deletable children. The handle to the thing + * and all its deletable children. The handle to the thing * to start with is received as the user data. We select the - * proper messages for the results screen and invoke + * proper messages for the results screen and invoke * the routine that actually delete the thing and the children. - * + * * Entry: * button - address of the GtkButton widget * user_data - object handle @@ -500,7 +500,7 @@ * Description: * This routine will display the thing we intend to delete and * allow the user to confirm the deletion of the thing. - * + * * Entry: * menuitem - the menuitem that initiated the action * user_data - object handle @@ -509,7 +509,7 @@ * See description. * */ -void on_delete_thing_menu_item_activate(GtkMenuItem * menuitem, gpointer user_data) +void on_delete_thing_menu_item_activate(GtkMenuItem * UNUSED(menuitem), gpointer user_data) { object_type_t type; Index: activation.c =================================================================== RCS file: /cvsroot/evms/evms2/engine/ui/gtk/activation.c,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- activation.c 8 Jun 2004 19:02:47 -0000 1.3 +++ activation.c 23 Jan 2009 00:06:25 -0000 1.4 @@ -49,8 +49,8 @@ * Returns... [truncated message content] |