Merge pull request #15 from lakinduakash/dev-1

Dev 1
This commit is contained in:
Lakindu Akash 2019-04-18 00:50:16 +05:30 committed by GitHub
commit 60fca63012
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -187,7 +187,6 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="margin_left">10</property>
<property name="margin_top">5</property>
<property name="margin_bottom">1</property>
<property name="label" translatable="yes">Advanced</property>
@ -494,6 +493,7 @@
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_bottom">5</property>
<property name="orientation">vertical</property>
<property name="homogeneous">True</property>
<child>
<object class="GtkLabel" id="label_status">
@ -515,7 +515,7 @@
<object class="GtkLabel" id="label_input_error">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">start</property>
<property name="halign">center</property>
</object>
<packing>
<property name="expand">False</property>

View File

@ -647,12 +647,12 @@ static gboolean validator(ConfigValues *cv){
return FALSE;
}
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_mac))==TRUE){
if(gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(cb_mac))==TRUE) {
if(cv->mac==NULL)
return FALSE;
if (cv->mac == NULL || isValidMacAddress(cv->mac) != 1) {
set_error_text(ERROR_MAC_MSG);
gtk_style_context_add_class(context_entry_mac, "entry-error");
if(isValidMacAddress(cv->mac)==1){
return FALSE;
}
}