[frogr] Don't show dialogs if other one is about to be shown
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Don't show dialogs if other one is about to be shown
- Date: Fri, 14 Dec 2012 19:00:42 +0000 (UTC)
commit 35bdb66910c9ac626df5be3204a24f17a7e2842c
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Fri Dec 14 19:46:35 2012 +0100
Don't show dialogs if other one is about to be shown
src/frogr-controller.c | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/src/frogr-controller.c b/src/frogr-controller.c
index 887ecdf..691cbac 100644
--- a/src/frogr-controller.c
+++ b/src/frogr-controller.c
@@ -2604,9 +2604,12 @@ frogr_controller_show_details_dialog (FrogrController *self,
FrogrControllerPrivate *priv = NULL;
g_return_if_fail(FROGR_IS_CONTROLLER (self));
-
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
+ /* Don't show the dialog if one is to be shown already */
+ if (priv->show_details_dialog_source_id)
+ return;
+
/* Fetch the tags list first if needed */
if (frogr_config_get_tags_autocompletion (priv->config) && !priv->tags_fetched)
{
@@ -2630,9 +2633,12 @@ frogr_controller_show_add_tags_dialog (FrogrController *self,
FrogrControllerPrivate *priv = NULL;
g_return_if_fail(FROGR_IS_CONTROLLER (self));
-
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
+ /* Don't show the dialog if one is to be shown already */
+ if (priv->show_add_tags_dialog_source_id)
+ return;
+
/* Fetch the tags list first if needed */
if (frogr_config_get_tags_autocompletion (priv->config) && !priv->tags_fetched)
{
@@ -2656,9 +2662,12 @@ frogr_controller_show_create_new_set_dialog (FrogrController *self,
FrogrControllerPrivate *priv = NULL;
g_return_if_fail(FROGR_IS_CONTROLLER (self));
-
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
+ /* Don't show the dialog if one is to be shown already */
+ if (priv->show_create_new_set_dialog_source_id)
+ return;
+
/* Fetch the sets first if needed */
if (!priv->photosets_fetched)
{
@@ -2682,9 +2691,12 @@ frogr_controller_show_add_to_set_dialog (FrogrController *self,
FrogrControllerPrivate *priv = NULL;
g_return_if_fail(FROGR_IS_CONTROLLER (self));
-
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
+ /* Don't show the dialog if one is to be shown already */
+ if (priv->show_add_to_set_dialog_source_id)
+ return;
+
/* Fetch the sets first if needed */
if (!priv->photosets_fetched)
{
@@ -2708,9 +2720,12 @@ frogr_controller_show_add_to_group_dialog (FrogrController *self,
FrogrControllerPrivate *priv = NULL;
g_return_if_fail(FROGR_IS_CONTROLLER (self));
-
priv = FROGR_CONTROLLER_GET_PRIVATE (self);
+ /* Don't show the dialog if one is to be shown already */
+ if (priv->show_add_to_group_dialog_source_id)
+ return;
+
/* Fetch the groups first if needed */
if (!priv->groups_fetched)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]