soylent r131 - trunk/src



Author: treitter
Date: Mon Apr  7 04:30:04 2008
New Revision: 131
URL: http://svn.gnome.org/viewvc/soylent?rev=131&view=rev

Log:
Cut out code referencing the widgets cut two commits ago

Modified:
   trunk/src/soylent-browser-person-view.c
   trunk/src/soylent-browser.c

Modified: trunk/src/soylent-browser-person-view.c
==============================================================================
--- trunk/src/soylent-browser-person-view.c	(original)
+++ trunk/src/soylent-browser-person-view.c	Mon Apr  7 04:30:04 2008
@@ -3075,8 +3075,6 @@
   gboolean email_retval = FALSE;
   GladeXML *wtree = NULL;
   GtkIconView *iv = NULL;
-  GtkWidget *btn_delete_people = NULL;
-  GtkWidget *btn_edit_person = NULL;
   GtkMenuToolButton *btntb_email = NULL;
   GtkMenuToolButton *btntb_chat = NULL;
   GList *selected_people = NULL;
@@ -3088,24 +3086,12 @@
 
   wtree = soylent_browser_get_widget_tree (browser);
   iv = GTK_ICON_VIEW (glade_xml_get_widget (wtree, "iv_people"));
-  btn_delete_people = glade_xml_get_widget (wtree, "btn_delete_people");
-  btn_edit_person = glade_xml_get_widget (wtree, "btn_edit_person");
   btntb_email = GTK_MENU_TOOL_BUTTON (glade_xml_get_widget (wtree,
                                                             "btntb_email"));
   btntb_chat = GTK_MENU_TOOL_BUTTON (glade_xml_get_widget (wtree,
                                                            "btntb_chat"));
 
   selected_people = gtk_icon_view_get_selected_items (iv);
-  if (selected_people && selected_people->data)
-    {
-      gtk_widget_set_sensitive (btn_delete_people, TRUE);
-      gtk_widget_set_sensitive (btn_edit_person, TRUE);
-    }
-  else
-    {
-      gtk_widget_set_sensitive (btn_delete_people, FALSE);
-      gtk_widget_set_sensitive (btn_edit_person, FALSE);
-    }
 
   email_retval = soylent_browser_person_selected_email_menu_update_cb
                                                                   (btntb_email,

Modified: trunk/src/soylent-browser.c
==============================================================================
--- trunk/src/soylent-browser.c	(original)
+++ trunk/src/soylent-browser.c	Mon Apr  7 04:30:04 2008
@@ -1609,13 +1609,6 @@
        CB_DATA_SIMPLE, browser},
 
       /* Person action buttons */
-      {"btn_new_person", "clicked", soylent_browser_person_action_new_person_cb,
-       CB_DATA_SIMPLE, browser},
-      {"btn_delete_people", "clicked",
-       soylent_browser_person_action_delete_selected_cb, CB_DATA_SIMPLE,
-       browser},
-      {"btn_edit_person", "clicked",
-       soylent_browser_person_action_edit_selected_cb, CB_DATA_SIMPLE, browser},
       {"btntb_email", "clicked",
        soylent_browser_person_action_email_menu_tool_button_cb, CB_DATA_SIMPLE,
        browser},



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