[gimp] app: add "misc" group to the dashboard
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: add "misc" group to the dashboard
- Date: Mon, 2 Apr 2018 21:02:42 +0000 (UTC)
commit da3c96f541d1ab9fb62b527625b30c13d2f34181
Author: Ell <ell_se yahoo com>
Date: Sat Mar 31 11:43:15 2018 -0400
app: add "misc" group to the dashboard
... which currently has a single "mipmapped" field, which shows the
total size of processed mipmapped data.
app/widgets/gimpdashboard.c | 38 ++++++++++++++++++++++++++++++++++++--
1 files changed, 36 insertions(+), 2 deletions(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 77cfda4..6388011 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -95,6 +95,9 @@ typedef enum
VARIABLE_CPU_ACTIVE_TIME,
#endif
+ /* misc */
+ VARIABLE_MIPMAPED,
+
N_VARIABLES,
@@ -120,6 +123,7 @@ typedef enum
#ifdef HAVE_CPU_GROUP
GROUP_CPU,
#endif
+ GROUP_MISC,
N_GROUPS
} Group;
@@ -458,8 +462,20 @@ static const VariableInfo variables[] =
.color = {0.8, 0.7, 0.2, 0.4},
.sample_func = gimp_dashboard_sample_cpu_active_time,
.reset_func = gimp_dashboard_reset_cpu_active_time
- }
+ },
#endif /* HAVE_CPU_GROUP */
+
+
+ /* misc variables */
+
+ [VARIABLE_MIPMAPED] =
+ { .name = "mipmapped",
+ .title = NC_("dashboard-variable", "Mipmapped"),
+ .description = N_("Total size of processed mipmapped data"),
+ .type = VARIABLE_TYPE_SIZE,
+ .sample_func = gimp_dashboard_sample_gegl_stats,
+ .data = "zoom-total"
+ },
};
static const GroupInfo groups[] =
@@ -558,8 +574,26 @@ static const GroupInfo groups[] =
{}
}
- }
+ },
#endif /* HAVE_CPU_GROUP */
+
+ /* misc group */
+ [GROUP_MISC] =
+ { .name = "misc",
+ .title = NC_("dashboard-group", "Misc"),
+ .description = N_("Miscellaneous information"),
+ .default_active = FALSE,
+ .default_expanded = FALSE,
+ .has_meter = FALSE,
+ .fields = (const FieldInfo[])
+ {
+ { .variable = VARIABLE_MIPMAPED,
+ .default_active = TRUE
+ },
+
+ {}
+ }
+ },
};
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]