[nautilus] undo-transaction: remove obsolete commented code



commit 93e1cdfd387c47f73e51eeff924f8e2c9fad2bda
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Sep 29 14:25:51 2010 +0200

    undo-transaction: remove obsolete commented code

 libnautilus-private/nautilus-undo-transaction.c |   45 -----------------------
 src/nautilus-bookmarks-window.c                 |    2 -
 2 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/libnautilus-private/nautilus-undo-transaction.c b/libnautilus-private/nautilus-undo-transaction.c
index d2cbf43..f7bb47b 100644
--- a/libnautilus-private/nautilus-undo-transaction.c
+++ b/libnautilus-private/nautilus-undo-transaction.c
@@ -41,51 +41,6 @@ static void undo_atom_list_undo_and_free         (GList                        *
 G_DEFINE_TYPE (NautilusUndoTransaction, nautilus_undo_transaction,
 	       G_TYPE_OBJECT);
 
-#ifdef UIH
-static Nautilus_Undo_MenuItem *
-impl_Nautilus_Undo_Transaction__get_undo_menu_item (PortableServer_Servant servant,
-						    CORBA_Environment *ev)
-{
-	NautilusUndoTransaction *transaction;
-	Nautilus_Undo_MenuItem *item;
-
-	transaction = NAUTILUS_UNDO_TRANSACTION (bonobo_object_from_servant (servant));
-	
-	item = Nautilus_Undo_MenuItem__alloc ();
-     	item->label = CORBA_string_dup (transaction->undo_menu_item_label);
-     	item->hint = CORBA_string_dup (transaction->undo_menu_item_hint);
-	
-	return item;
-}
-							 				
-static Nautilus_Undo_MenuItem *
-impl_Nautilus_Undo_Transaction__get_redo_menu_item (PortableServer_Servant servant,
-						    CORBA_Environment *ev)
-{
-	NautilusUndoTransaction *transaction;
-	Nautilus_Undo_MenuItem *item;
-
-	transaction = NAUTILUS_UNDO_TRANSACTION (bonobo_object_from_servant (servant));
-	
-	item = Nautilus_Undo_MenuItem__alloc ();
-     	item->label = CORBA_string_dup (transaction->redo_menu_item_label);
-     	item->hint = CORBA_string_dup (transaction->redo_menu_item_hint);
-	
-	return item;
-}
-
-static CORBA_char *
-impl_Nautilus_Undo_Transaction__get_operation_name (PortableServer_Servant servant,
-						    CORBA_Environment *ev)
-{
-	NautilusUndoTransaction *transaction;
-	
-	transaction = NAUTILUS_UNDO_TRANSACTION (bonobo_object_from_servant (servant));
-	return CORBA_string_dup (transaction->operation_name);
-}
-#endif
-
-
 NautilusUndoTransaction *
 nautilus_undo_transaction_new (const char *operation_name,
 			       const char *undo_menu_item_label,
diff --git a/src/nautilus-bookmarks-window.c b/src/nautilus-bookmarks-window.c
index bb3e34e..246ea43 100644
--- a/src/nautilus-bookmarks-window.c
+++ b/src/nautilus-bookmarks-window.c
@@ -324,7 +324,6 @@ create_bookmarks_window (NautilusBookmarkList *list, GObject *undo_manager_sourc
 	gtk_widget_show (name_field);
 	gtk_box_pack_start (GTK_BOX (gtk_builder_get_object (builder, "bookmark_name_placeholder")),
 			    name_field, TRUE, TRUE, 0);
-	nautilus_undo_editable_set_undo_key (GTK_EDITABLE (name_field), TRUE);
 	
 	gtk_label_set_mnemonic_widget (
 		GTK_LABEL (gtk_builder_get_object (builder, "bookmark_name_label")),
@@ -334,7 +333,6 @@ create_bookmarks_window (NautilusBookmarkList *list, GObject *undo_manager_sourc
 	gtk_widget_show (uri_field);
 	gtk_box_pack_start (GTK_BOX (gtk_builder_get_object (builder, "bookmark_location_placeholder")),
 			    uri_field, TRUE, TRUE, 0);
-	nautilus_undo_editable_set_undo_key (GTK_EDITABLE (uri_field), TRUE);
 
 	gtk_label_set_mnemonic_widget (
 		GTK_LABEL (gtk_builder_get_object (builder, "bookmark_location_label")),



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