Fixed shutdown@all always on

pull/235/head
parent 10ef08bb86
commit 79c6053f38

@ -287,10 +287,10 @@ void on_useradd_sync_changed(ubl_settings_usergroups_additional_settings_window
}
char *groupadd_sync = "";
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsersBootCheck))){
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->GroupsBootCheck))){
groupadd_sync = yon_char_new("boot");
}
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->UsersShutdownCheck))){
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(window->GroupsShutdownCheck))){
char *temp = yon_char_unite(groupadd_sync,!yon_char_is_empty(groupadd_sync)?",":"","shutdown",NULL);
if(!yon_char_is_empty(groupadd_sync)) free(groupadd_sync);
groupadd_sync = temp;
@ -417,8 +417,6 @@ ubl_settings_usergroups_additional_settings_window *yon_ubl_settings_usergroups_
} else if (!strcmp(parsed[i],"shutdown@all")){
gtk_tree_model_get_iter_first(model,&iter);
gtk_list_store_set(window->UsersShutdownList,&iter,0,1,-1);
gtk_expander_set_expanded(GTK_EXPANDER(window->UsersShutdownExpander),0);
gtk_revealer_set_reveal_child(GTK_REVEALER(window->UserShutdownRevealer),0);
} else if (!strcmp(parsed[i],"shutdown@users")){
gtk_tree_model_get_iter_first(model,&iter);
gtk_list_store_set(window->UsersShutdownList,&iter,0,0,5,0,6,0,-1);
@ -498,8 +496,6 @@ ubl_settings_usergroups_additional_settings_window *yon_ubl_settings_usergroups_
} else if (!strcmp(parsed[i],"shutdown@all")){
gtk_tree_model_get_iter_first(model,&iter);
gtk_list_store_set(window->GroupsShutdownList,&iter,0,1,-1);
gtk_expander_set_expanded(GTK_EXPANDER(window->GroupsShutdownExpander),0);
gtk_revealer_set_reveal_child(GTK_REVEALER(window->GroupShutdownRevealer),0);
} else if (!strcmp(parsed[i],"shutdown@users")){
gtk_tree_model_get_iter_first(model,&iter);
gtk_list_store_set(window->GroupsShutdownList,&iter,0,0,-1);

@ -32,13 +32,13 @@
</columns>
<data>
<row>
<col id="0">True</col>
<col id="0">False</col>
<col id="1" translatable="yes">All groups in system</col>
<col id="2" translatable="yes">1</col>
<col id="3" translatable="yes">65535</col>
<col id="4">True</col>
<col id="5">True</col>
<col id="6">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
<col id="9" translatable="yes">shutdown@all</col>
@ -51,7 +51,7 @@
<col id="2" translatable="yes">1000</col>
<col id="3" translatable="yes">6000</col>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
@ -65,7 +65,7 @@
<col id="2" translatable="yes">500</col>
<col id="3" translatable="yes">999</col>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
@ -79,7 +79,7 @@
<col id="2" translatable="yes"/>
<col id="3" translatable="yes"/>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">True</col>
<col id="8">True</col>
@ -93,7 +93,7 @@
<col id="2" translatable="yes"/>
<col id="3" translatable="yes"/>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">True</col>
<col id="8">False</col>
@ -132,13 +132,13 @@
</columns>
<data>
<row>
<col id="0">True</col>
<col id="0">False</col>
<col id="1" translatable="yes">All system users</col>
<col id="2" translatable="yes">1</col>
<col id="3" translatable="yes">65535</col>
<col id="4">True</col>
<col id="5">True</col>
<col id="6">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
<col id="9" translatable="yes">shutdown@all</col>
@ -151,7 +151,7 @@
<col id="2" translatable="yes">1000</col>
<col id="3" translatable="yes">6000</col>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
@ -165,7 +165,7 @@
<col id="2" translatable="yes">500</col>
<col id="3" translatable="yes">999</col>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">False</col>
<col id="8">False</col>
@ -179,7 +179,7 @@
<col id="2" translatable="yes"/>
<col id="3" translatable="yes"/>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">True</col>
<col id="8">True</col>
@ -193,7 +193,7 @@
<col id="2" translatable="yes"/>
<col id="3" translatable="yes"/>
<col id="4">True</col>
<col id="5">False</col>
<col id="5">True</col>
<col id="6">False</col>
<col id="7">True</col>
<col id="8">False</col>

Loading…
Cancel
Save