NetworkManager/nm-applet-0.7.0-disable-connection-editor-changes.patch
Daniel Williams 30562d58f1 - Add CDMA mobile broadband support (if supported by HAL)
- Rework applet connection and icon handling
- Enable connection editor (only for deleting connections)
2008-01-22 03:50:07 +00:00

25 lines
1.6 KiB
Diff

diff -up NetworkManager-0.7.0/nm-applet-0.7.0/src/connection-editor/nm-connection-list.c.nochange NetworkManager-0.7.0/nm-applet-0.7.0/src/connection-editor/nm-connection-list.c
--- NetworkManager-0.7.0/nm-applet-0.7.0/src/connection-editor/nm-connection-list.c.nochange 2008-01-21 22:46:28.000000000 -0500
+++ NetworkManager-0.7.0/nm-applet-0.7.0/src/connection-editor/nm-connection-list.c 2008-01-21 22:48:00.000000000 -0500
@@ -229,7 +229,7 @@ list_selection_changed_cb (GtkTreeSelect
GtkTreeModel *model;
if (gtk_tree_selection_get_selected (selection, &model, &iter)) {
- gtk_widget_set_sensitive (GTK_WIDGET (list->edit_button), TRUE);
+ gtk_widget_set_sensitive (GTK_WIDGET (list->edit_button), FALSE);
gtk_widget_set_sensitive (GTK_WIDGET (list->delete_button), TRUE);
} else {
gtk_widget_set_sensitive (GTK_WIDGET (list->edit_button), FALSE);
@@ -280,9 +280,11 @@ nm_connection_list_init (NMConnectionLis
/* buttons */
list->add_button = glade_xml_get_widget (list->gui, "add_connection_button");
g_signal_connect (G_OBJECT (list->add_button), "clicked", G_CALLBACK (add_connection_cb), list);
+ gtk_widget_set_sensitive (list->add_button, FALSE);
list->edit_button = glade_xml_get_widget (list->gui, "edit_connection_button");
g_signal_connect (G_OBJECT (list->edit_button), "clicked", G_CALLBACK (edit_connection_cb), list);
+ gtk_widget_set_sensitive (list->edit_button, FALSE);
list->delete_button = glade_xml_get_widget (list->gui, "delete_connection_button");
g_signal_connect (G_OBJECT (list->delete_button), "clicked", G_CALLBACK (delete_connection_cb), list);