mirror of
https://github.com/lakinduakash/linux-wifi-hotspot.git
synced 2025-02-16 07:30:09 +00:00
commit
60fca63012
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user