Commit ccbd253c authored by Vladislav's avatar Vladislav

Added label hide, refactoring code, drop full disable check and switch

parent 067dfe35
......@@ -974,10 +974,6 @@ add_field (const gchar * option_name, const gchar * value, gpointer data, GError
fld->type = YAD_FIELD_DISABLE_CHECK;
else if (strcasecmp (fstr[1], "DSW") == 0)
fld->type = YAD_FIELD_DISABLE_SWITCH;
else if (strcasecmp (fstr[1], "FDCHK") == 0)
fld->type = YAD_FIELD_FULL_DISABLE_CHECK;
else if (strcasecmp (fstr[1], "FDSW") == 0)
fld->type = YAD_FIELD_FULL_DISABLE_SWITCH;
else if (strcasecmp (fstr[1], "BTN") == 0)
fld->type = YAD_FIELD_BUTTON;
else if (strcasecmp (fstr[1], "FBTN") == 0)
......@@ -990,6 +986,8 @@ add_field (const gchar * option_name, const gchar * value, gpointer data, GError
fld->type = YAD_FIELD_LINK;
else if (strcasecmp (fstr[1], "LBL") == 0)
fld->type = YAD_FIELD_LABEL;
else if (strcasecmp (fstr[1], "LBLH") == 0)
fld->type = YAD_FIELD_LABEL_HIDE;
else if (strcasecmp (fstr[1], "TXT") == 0)
fld->type = YAD_FIELD_TEXT;
else
......
......@@ -118,8 +118,6 @@ typedef enum {
YAD_FIELD_SWITCH,
YAD_FIELD_DISABLE_CHECK,
YAD_FIELD_DISABLE_SWITCH,
YAD_FIELD_FULL_DISABLE_CHECK,
YAD_FIELD_FULL_DISABLE_SWITCH,
YAD_FIELD_COMBO,
YAD_FIELD_COMBO_ENTRY,
YAD_FIELD_DISABLE_COMBO,
......@@ -142,6 +140,7 @@ typedef enum {
YAD_FIELD_CENTER_FULL_BUTTON,
YAD_FIELD_LINK,
YAD_FIELD_LABEL,
YAD_FIELD_LABEL_HIDE,
YAD_FIELD_TEXT
} YadFieldType;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment