[nautilus-actions] BaseWindow: update comments



commit b0b8bc5c261bf8af05f858290dcbe94cf7a65036
Author: Pierre Wieser <pwieser trychlos org>
Date:   Fri Jan 28 09:45:41 2011 +0100

    BaseWindow: update comments

 src/nact/base-window.c |   33 ---------------------------------
 src/nact/base-window.h |    2 +-
 2 files changed, 1 insertions(+), 34 deletions(-)
---
diff --git a/src/nact/base-window.c b/src/nact/base-window.c
index 5da97c5..9374822 100644
--- a/src/nact/base-window.c
+++ b/src/nact/base-window.c
@@ -132,9 +132,6 @@ static void     on_all_widgets_showed_class_handler( BaseWindow *window );
 static gboolean do_run( BaseWindow *window, GtkWindow *toplevel );
 static gboolean is_main_window( BaseWindow *window );
 static gboolean on_delete_event( GtkWidget *widget, GdkEvent *event, BaseWindow *window );
-#if 0
-static gboolean on_dialog_response( GtkDialog *dialog, gint code, BaseWindow *window );
-#endif
 
 static void     record_connected_signal( BaseWindow *window, GObject *instance, gulong handler_id );
 static gint     display_dlg( const BaseWindow *parent, GtkMessageType type_message, GtkButtonsType type_buttons, const gchar *primary, const gchar *secondary );
@@ -1080,36 +1077,6 @@ base_window_is_willing_to_quit( const BaseWindow *window )
 	return( willing_to );
 }
 
-/*
- * this is the handler for the 'response' message when the main window is
- * actually a GtkDialog
- *
- * we default to quit the dialog loop
- */
-#if 0
-static gboolean
-on_dialog_response( GtkDialog *dialog, gint code, BaseWindow *window )
-{
-	static const gchar *thisfn = "base_window_on_dialog_response";
-	gboolean stop = FALSE;
-
-	g_debug( "%s: dialog=%p, code=%d, window=%p", thisfn, ( void * ) dialog, code, ( void * ) window );
-	g_return_val_if_fail( BASE_IS_WINDOW( window ), FALSE );
-
-	if( !window->private->dispose_has_run ){
-
-		if( BASE_WINDOW_GET_CLASS( window )->dialog_response ){
-			stop = BASE_WINDOW_GET_CLASS( window )->dialog_response( window, dialog, code );
-
-		} else {
-			stop = TRUE;
-		}
-	}
-
-	return( stop );
-}
-#endif
-
 /**
  * base_window_display_error_dlg:
  * @parent: the #BaseWindow parent, may be %NULL.
diff --git a/src/nact/base-window.h b/src/nact/base-window.h
index f01dff9..dbc5ab9 100644
--- a/src/nact/base-window.h
+++ b/src/nact/base-window.h
@@ -98,9 +98,9 @@ typedef struct _BaseWindowClassPrivate  BaseWindowClassPrivate;
  * BaseWindowClass:
  * @initialize_gtk_toplevel: initialize the toplevel GtkWindow
  * @initialize_base_window:  initialize the BaseWindow
+ * @get_wsp_id:              returns the string which handles size and position preferences
  * @all_widgets_showed:      all widgets have been showed
  * @run:                     run the dialog box loop
- * @iprefs_get_window_id:    returns the string which handles size and position preferences
  * @is_willing_to_quit:      asks if the window is willing to quit
  *
  * This defines the virtual method a derived class may, should or must implement.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]