-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adicionado nome fantasia para cliente
- Loading branch information
Showing
13 changed files
with
61 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,13 @@ | ||
int name_terc() | ||
{ | ||
|
||
nomes_ter = (gchar *) gtk_entry_get_text(GTK_ENTRY(name_ter_field)); | ||
if(strlen(nomes_ter)>MAX_RAZ_LEN) | ||
{ | ||
popup(NULL,"Nome muito grande\nPor favor diminua"); | ||
gtk_widget_grab_focus(GTK_WIDGET(name_ter_field)); | ||
return 1; | ||
} | ||
if(strlen(nomes_ter)<=0) | ||
{ | ||
popup(NULL,"Por favor insira um nome para o terceiro"); | ||
gtk_widget_grab_focus(GTK_WIDGET(name_ter_field)); | ||
return 1; | ||
} | ||
else | ||
{ | ||
gtk_widget_grab_focus(cep_ter_field); | ||
} | ||
g_print("nome: %s\n",nomes_ter); | ||
|
||
gtk_widget_grab_focus(ter_nome_fantasia_entry); | ||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
int ter_nome_fantasia_fun(){ | ||
ter_nome_fantasia_gchar = (gchar *) gtk_entry_get_text(GTK_ENTRY(ter_nome_fantasia_entry)); | ||
if(strlen(ter_nome_fantasia_gchar)<=0){ | ||
ter_nome_fantasia_gchar = strdup(""); | ||
return 0; | ||
} | ||
|
||
gtk_widget_grab_focus(cep_ter_field); | ||
return 0; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
int ter_nome_fantasia_fun(); | ||
GtkWidget *ter_nome_fantasia_entry; | ||
gchar *ter_nome_fantasia_gchar; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters