comparison pidgin/gtkcertmgr.c @ 19061:3d6576b8c88a

- The tls_peers_mgmt import button should be enabled whether there are any certificates already or not
author William Ehlhardt <williamehlhardt@gmail.com>
date Mon, 30 Jul 2007 07:20:04 +0000
parents ba99c1100e98
children da88aa8f83ad
comparison
equal deleted inserted replaced
19060:c79b54f03f9d 19061:3d6576b8c88a
122 GtkTreeModel *model; 122 GtkTreeModel *model;
123 123
124 /* See if things are selected */ 124 /* See if things are selected */
125 if (gtk_tree_selection_get_selected(select, &model, &iter)) { 125 if (gtk_tree_selection_get_selected(select, &model, &iter)) {
126 /* Enable buttons if something is selected */ 126 /* Enable buttons if something is selected */
127 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->importbutton), TRUE);
128 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->exportbutton), TRUE); 127 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->exportbutton), TRUE);
129 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->infobutton), TRUE); 128 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->infobutton), TRUE);
130 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->deletebutton), TRUE); 129 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->deletebutton), TRUE);
131 } else { 130 } else {
132 /* Otherwise, disable them */ 131 /* Otherwise, disable them */
133 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->importbutton), FALSE);
134 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->exportbutton), FALSE); 132 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->exportbutton), FALSE);
135 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->infobutton), FALSE); 133 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->infobutton), FALSE);
136 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->deletebutton), FALSE); 134 gtk_widget_set_sensitive(GTK_WIDGET(tpm_dat->deletebutton), FALSE);
137 135
138 } 136 }