|
|
|
@ -1799,7 +1799,7 @@ gboolean on_tooltip_show(GtkWidget*, gint x, gint y, gboolean, GtkTooltip* toolt
|
|
|
|
if (gtk_tree_model_get_iter(model, &iter, path)) {
|
|
|
|
if (gtk_tree_model_get_iter(model, &iter, path)) {
|
|
|
|
gchar *name, *description, *state, *name_target, *load_status, *active_status,*unit_path;
|
|
|
|
gchar *name, *description, *state, *name_target, *load_status, *active_status,*unit_path;
|
|
|
|
int size;
|
|
|
|
int size;
|
|
|
|
gtk_tree_model_get(model, &iter, 5, &name, 6, &description, 11, &state, 14,&load_status,15,&active_status,16,&unit_path, -1);
|
|
|
|
gtk_tree_model_get(model, &iter, 5, &name, 6, &description, 13, &state, 14,&load_status,15,&active_status,16,&unit_path, -1);
|
|
|
|
name_target = yon_char_new(name);
|
|
|
|
name_target = yon_char_new(name);
|
|
|
|
if (name[0]=='-'){
|
|
|
|
if (name[0]=='-'){
|
|
|
|
name_target = yon_char_append("-- ",name_target);
|
|
|
|
name_target = yon_char_append("-- ",name_target);
|
|
|
|
@ -1815,11 +1815,13 @@ gboolean on_tooltip_show(GtkWidget*, gint x, gint y, gboolean, GtkTooltip* toolt
|
|
|
|
yon_char_remove_last_symbol(target[2], '\n');
|
|
|
|
yon_char_remove_last_symbol(target[2], '\n');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
state[0]=g_ascii_toupper(state[0]);
|
|
|
|
|
|
|
|
load_status[0]=g_ascii_toupper(load_status[0]);
|
|
|
|
|
|
|
|
active_status[0]=g_ascii_toupper(active_status[0]);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->UnitLabel), unit_path);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->UnitLabel), unit_path);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->NameLabel), name);
|
|
|
|
gtk_label_set_markup(GTK_LABEL(widgets->NameLabel), yon_char_unite("<b>",name,"</b>",NULL));
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->DescriptionLabel), description);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->DescriptionLabel), description);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->StatusQueryLabel), state);
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->StatusQueryLabel), _(state));
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->AutostartLabel), _(load_status));
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->AutostartLabel), _(load_status));
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->TooltipStatusLabel), _(active_status));
|
|
|
|
gtk_label_set_text(GTK_LABEL(widgets->TooltipStatusLabel), _(active_status));
|
|
|
|
|
|
|
|
|
|
|
|
|