[gimp] app: small cleanup in GimpDashboard
- From: N/A <ell src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: small cleanup in GimpDashboard
- Date: Sun, 31 Dec 2017 15:47:27 +0000 (UTC)
commit 0d27800aa78ceb0095a19d9d0cc7554d068dad59
Author: Ell <ell_se yahoo com>
Date: Sun Dec 31 10:43:47 2017 -0500
app: small cleanup in GimpDashboard
app/widgets/gimpdashboard.c | 34 +++++++++++++++++-----------------
1 files changed, 17 insertions(+), 17 deletions(-)
---
diff --git a/app/widgets/gimpdashboard.c b/app/widgets/gimpdashboard.c
index 36f151b..687ec18 100644
--- a/app/widgets/gimpdashboard.c
+++ b/app/widgets/gimpdashboard.c
@@ -126,7 +126,7 @@ struct _FieldInfo
{
Variable variable;
gboolean default_active;
- gboolean meter_value;
+ gint meter_value;
};
struct _GroupInfo
@@ -164,7 +164,7 @@ struct _VariableData
struct _FieldData
{
- gboolean active;
+ gboolean active;
GtkCheckMenuItem *menu_item;
GtkLabel *value_label;
@@ -1000,11 +1000,11 @@ gimp_dashboard_group_expander_button_press (GimpDashboard *dashboard,
allocation.x -= expander_allocation.x;
allocation.y -= expander_allocation.y;
- if (bevent->button == 1 &&
- bevent->x >= allocation.x &&
- bevent->x < allocation.x + allocation.width &&
- bevent->y >= allocation.y &&
- bevent->y < allocation.y + allocation.height)
+ if (bevent->button == 1 &&
+ bevent->x >= allocation.x &&
+ bevent->x < allocation.x + allocation.width &&
+ bevent->y >= allocation.y &&
+ bevent->y < allocation.y + allocation.height)
{
gtk_menu_popup (group_data->menu,
NULL, NULL,
@@ -1109,6 +1109,16 @@ gimp_dashboard_sample (GimpDashboard *dashboard)
if (varaibles_changed)
{
+ /* enqueue update source */
+ if (! priv->update_idle_id &&
+ gtk_widget_get_mapped (GTK_WIDGET (dashboard)))
+ {
+ priv->update_idle_id = g_idle_add_full (
+ G_PRIORITY_DEFAULT,
+ (GSourceFunc) gimp_dashboard_update,
+ dashboard, NULL);
+ }
+
/* check for low swap space */
if (priv->low_swap_space_warning &&
priv->variables[VARIABLE_SWAP_OCCUPIED].available &&
@@ -1146,16 +1156,6 @@ gimp_dashboard_sample (GimpDashboard *dashboard)
seen_low_swap_space = FALSE;
}
}
-
- /* enqueue update source */
- if (! priv->update_idle_id &&
- gtk_widget_get_mapped (GTK_WIDGET (dashboard)))
- {
- priv->update_idle_id = g_idle_add_full (
- G_PRIORITY_DEFAULT,
- (GSourceFunc) gimp_dashboard_update,
- dashboard, NULL);
- }
}
priv->update_now = FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]