[gnumeric] WorkbookControl: implement GOCmdContext interface.



commit 48cc073aa28c8882c7c547e5dd8dcfae7fd025a5
Author: Morten Welinder <terra gnome org>
Date:   Wed Dec 2 16:44:55 2009 -0500

    WorkbookControl: implement GOCmdContext interface.

 ChangeLog              |    4 ++++
 src/workbook-control.c |   21 ++++++++++++++++++---
 2 files changed, 22 insertions(+), 3 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index c05f9e9..8f7424e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-12-02  Morten Welinder  <terra gnome org>
+
+	* src/workbook-control.c (wbc_cmd_context_init): New function.
+
 2009-12-01  Morten Welinder  <terra gnome org>
 
 	* src/commands.c (cmd_set_text_redo): On the initial pass, don't
diff --git a/src/workbook-control.c b/src/workbook-control.c
index 0479da2..356cef6 100644
--- a/src/workbook-control.c
+++ b/src/workbook-control.c
@@ -398,9 +398,24 @@ workbook_control_init (GObject *obj)
 		G_CALLBACK (cb_wbc_clipboard_modified), wbc);
 }
 
-GSF_CLASS (WorkbookControl, workbook_control,
-	   workbook_control_class_init, workbook_control_init,
-	   GO_TYPE_DOC_CONTROL)
+static void
+wbc_cmd_context_init (GOCmdContextClass *iface)
+{
+#if 0
+	iface->get_password	    = ;
+	iface->set_sensitive	    = ;
+	iface->error.error	    = ;
+	iface->error.error_info	    = ;
+	iface->progress_set	    = ;
+	iface->progress_message_set = ;
+#endif
+}
+
+GSF_CLASS_FULL (WorkbookControl, workbook_control, NULL, NULL,
+		workbook_control_class_init, NULL, workbook_control_init,
+		GO_TYPE_DOC_CONTROL, 0,
+		GSF_INTERFACE (wbc_cmd_context_init, GO_TYPE_CMD_CONTEXT))
+
 
 void
 wb_control_set_view (WorkbookControl *wbc,



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