Make sure the row is unselected before trying to remove it
2001-10-17 Bradford Hovinen <hovinen@ximian.com> * url-properties.c: Make sure the row is unselected before trying to remove it
This commit is contained in:
parent
24ac960602
commit
534754d3f3
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2001-10-17 Bradford Hovinen <hovinen@ximian.com>
|
||||||
|
|
||||||
|
* url-properties.c: Make sure the row is unselected before trying
|
||||||
|
to remove it
|
||||||
|
|
||||||
2001-10-16 Jakub Steiner <jimmac@ximian.com>
|
2001-10-16 Jakub Steiner <jimmac@ximian.com>
|
||||||
|
|
||||||
* url-capplet.png: changed the icon based on usability@ notes
|
* url-capplet.png: changed the icon based on usability@ notes
|
||||||
|
|
|
@ -268,6 +268,7 @@ void remove_handler(GtkButton *button) {
|
||||||
for (row = 0; row < num_rows; row++) {
|
for (row = 0; row < num_rows; row++) {
|
||||||
gtk_clist_get_text(GTK_CLIST(clist), row, 0, &col1);
|
gtk_clist_get_text(GTK_CLIST(clist), row, 0, &col1);
|
||||||
if (!g_strcasecmp(prot, col1)) {
|
if (!g_strcasecmp(prot, col1)) {
|
||||||
|
gtk_clist_unselect_row(GTK_CLIST(clist), row, 0);
|
||||||
gtk_clist_remove(GTK_CLIST(clist), row);
|
gtk_clist_remove(GTK_CLIST(clist), row);
|
||||||
capplet_widget_state_changed(CAPPLET_WIDGET(capplet), TRUE);
|
capplet_widget_state_changed(CAPPLET_WIDGET(capplet), TRUE);
|
||||||
gtk_entry_set_text(GTK_ENTRY(protocol), "");
|
gtk_entry_set_text(GTK_ENTRY(protocol), "");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue