[recipes/todoist] switch_dialog only hides the account_box widget. To show provider_box still left
- From: Ekta Nandwani <ektan src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [recipes/todoist] switch_dialog only hides the account_box widget. To show provider_box still left
- Date: Wed, 5 Jul 2017 03:26:24 +0000 (UTC)
commit 4a71e3ba93cb57720ff0c0ba6a53bb3a59e11928
Author: Ekta Nandwani <mailnandwaniekta gmail com>
Date: Wed Jul 5 08:55:58 2017 +0530
switch_dialog only hides the account_box widget. To show provider_box still left
src/gr-ingredients-exporter.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/src/gr-ingredients-exporter.c b/src/gr-ingredients-exporter.c
index fd2ac06..b87de43 100644
--- a/src/gr-ingredients-exporter.c
+++ b/src/gr-ingredients-exporter.c
@@ -33,6 +33,7 @@
GtkWindow *window;
GtkWidget *todoist_row;
+ GtkWidget *accounts_box;
};
@@ -75,14 +76,11 @@ gr_ingredients_exporter_new (GtkWindow *parent)
}
static void
-switch_dialog_contents (GrIngredientsExporter *exporter,
- GtkBuilder *builder)
+switch_dialog_contents (GtkLabel *label, const char *uri, GrIngredientsExporter *exporter)
{
g_print("do_something");
- GtkWidget *accounts_box;
-
- accounts_box = GTK_WIDGET (gtk_builder_get_object (builder, "accounts_box"));
- gtk_widget_set_visible (accounts_box, FALSE);
+ //GtkWidget *accounts_box;
+ gtk_widget_set_visible (exporter->accounts_box, FALSE);
}
static void
@@ -98,7 +96,8 @@ show_export_dialog (GrIngredientsExporter *exporter)
exporter->todoist_row = GTK_WIDGET (gtk_builder_get_object (builder, "todoist_account_row"));
add_service = gtk_builder_get_object (builder, "add_service");
- g_signal_connect (add_service, "activate-link", G_CALLBACK (switch_dialog_contents), builder);
+ g_signal_connect (add_service, "activate-link", G_CALLBACK (switch_dialog_contents), exporter);
+ exporter->accounts_box = GTK_WIDGET (gtk_builder_get_object (builder, "accounts_box"));
GoaClient *client;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]