diff --git a/source/ubl-settings-resourcequota.c b/source/ubl-settings-resourcequota.c index f21aafe..ef69879 100644 --- a/source/ubl-settings-resourcequota.c +++ b/source/ubl-settings-resourcequota.c @@ -1005,6 +1005,7 @@ void on_edit_open(GtkWidget *, main_window *widgets){ window->EditQuotaTargetBox = yon_gtk_builder_get_widget(builder,"EditQuotaTargetBox"); window->TargetCombo = yon_gtk_builder_get_widget(builder,"TargetCombo"); window->TargetLabel = yon_gtk_builder_get_widget(builder,"TargetLabel"); + window->TypeLabel = yon_gtk_builder_get_widget(builder,"TypeLabel"); window->SoftRestrictionCheck = yon_gtk_builder_get_widget(builder,"SoftRestrictionCheck"); window->SoftRestrictionSpin = yon_gtk_builder_get_widget(builder,"SoftRestrictionSpin"); @@ -1091,7 +1092,8 @@ void on_edit_open(GtkWidget *, main_window *widgets){ yon_get_devices(window); dictionary *dict; gtk_widget_set_sensitive(window->BlockUiBox,1); - gtk_label_set_markup(GTK_LABEL(window->TargetLabel),yon_char_unite(type," ",target,"",NULL)); + gtk_label_set_text(GTK_LABEL(window->TypeLabel),type); + gtk_label_set_text(GTK_LABEL(window->TargetLabel),target); int read_size=0; config_str read_parsed = yon_char_parse(read,&read_size,"\n"); int write_size=0; diff --git a/source/ubl-settings-resourcequota.h b/source/ubl-settings-resourcequota.h index b54cf4e..ce9d9e0 100644 --- a/source/ubl-settings-resourcequota.h +++ b/source/ubl-settings-resourcequota.h @@ -136,6 +136,7 @@ typedef struct { GtkWidget *TargetTypeCombo; GtkWidget *TargetCombo; GtkWidget *TargetLabel; + GtkWidget *TypeLabel; GtkWidget *SoftRestrictionCheck; GtkWidget *SoftRestrictionSpin; GtkWidget *SoftRestrictionCombo; diff --git a/ubl-settings-resourcequota-quota.glade b/ubl-settings-resourcequota-quota.glade index 54d72b9..3f808c8 100644 --- a/ubl-settings-resourcequota-quota.glade +++ b/ubl-settings-resourcequota-quota.glade @@ -172,9 +172,10 @@ - + True False + label False @@ -182,6 +183,20 @@ 1 + + + True + False + + + + + + False + True + 2 + + False