mirror of
https://github.com/samba-team/samba.git
synced 2025-09-19 13:44:20 +03:00
netdomjoin-gui: fix some small errors in callbacks.
Guenther
(This used to be commit 74031b0b4a
)
This commit is contained in:
@@ -827,9 +827,11 @@ static void callback_enter_hostname_and_unlock(GtkWidget *widget,
|
|||||||
if (strcasecmp(state->my_hostname, entry_text) == 0) {
|
if (strcasecmp(state->my_hostname, entry_text) == 0) {
|
||||||
state->hostname_changed = FALSE;
|
state->hostname_changed = FALSE;
|
||||||
gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
|
gtk_widget_set_sensitive(GTK_WIDGET(state->button_ok), FALSE);
|
||||||
return;
|
/* return; */
|
||||||
|
} else {
|
||||||
|
state->hostname_changed = TRUE;
|
||||||
}
|
}
|
||||||
state->hostname_changed = TRUE;
|
|
||||||
if (state->name_type_initial == NetSetupDomainName) {
|
if (state->name_type_initial == NetSetupDomainName) {
|
||||||
if (asprintf(&str, "%s.%s", entry_text, state->my_dnsdomain) == -1) {
|
if (asprintf(&str, "%s.%s", entry_text, state->my_dnsdomain) == -1) {
|
||||||
return;
|
return;
|
||||||
@@ -852,7 +854,7 @@ static void callback_enter_computer_description_and_unlock(GtkWidget *widget,
|
|||||||
{
|
{
|
||||||
const gchar *entry_text = NULL;
|
const gchar *entry_text = NULL;
|
||||||
struct join_state *state = (struct join_state *)data;
|
struct join_state *state = (struct join_state *)data;
|
||||||
int string_unchanged = 0;
|
int string_unchanged = FALSE;
|
||||||
|
|
||||||
entry_text = gtk_entry_get_text(GTK_ENTRY(widget));
|
entry_text = gtk_entry_get_text(GTK_ENTRY(widget));
|
||||||
debug("callback_enter_computer_description_and_unlock: %s\n",
|
debug("callback_enter_computer_description_and_unlock: %s\n",
|
||||||
@@ -865,8 +867,8 @@ static void callback_enter_computer_description_and_unlock(GtkWidget *widget,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (entry_text && strcasecmp(state->comment, entry_text) == 0) {
|
if (entry_text && state->comment && strcasecmp(state->comment, entry_text) == 0) {
|
||||||
string_unchanged = 1;
|
string_unchanged = TRUE;
|
||||||
gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply),
|
gtk_widget_set_sensitive(GTK_WIDGET(state->button_apply),
|
||||||
FALSE);
|
FALSE);
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user