summaryrefslogtreecommitdiff
path: root/src/anastasis/anastasis-gtk.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-09-08 10:47:58 +0200
committerChristian Grothoff <christian@grothoff.org>2021-09-08 10:47:58 +0200
commite0a59847f5d9a6283342486a2515e295d6b75c4e (patch)
treed8b80a73119ae9cf282819a518f33217d7b4e3df /src/anastasis/anastasis-gtk.c
parent187e82bdee7a6972f1c549643077b8257b0723b1 (diff)
downloadanastasis-gtk-e0a59847f5d9a6283342486a2515e295d6b75c4e.tar.gz
anastasis-gtk-e0a59847f5d9a6283342486a2515e295d6b75c4e.tar.bz2
anastasis-gtk-e0a59847f5d9a6283342486a2515e295d6b75c4e.zip
remove main menu
Diffstat (limited to 'src/anastasis/anastasis-gtk.c')
-rw-r--r--src/anastasis/anastasis-gtk.c77
1 files changed, 0 insertions, 77 deletions
diff --git a/src/anastasis/anastasis-gtk.c b/src/anastasis/anastasis-gtk.c
index 3a1e5e5..13e92a2 100644
--- a/src/anastasis/anastasis-gtk.c
+++ b/src/anastasis/anastasis-gtk.c
@@ -77,83 +77,6 @@ struct GNUNET_SCHEDULER_Task *AG_long_task;
json_t *AG_redux_state;
-/**
- * Callback invoked if the the "show animation"-menuitem (Help) is clicked.
- *
- * @param menuitem the object which received the signal.
- * @param user_data user data set when the signal handler was connected.
- */
-void
-anastasis_gtk_animation_activate_cb (GtkMenuItem *menuitem,
- gpointer user_data)
-{
- static const struct
- {
- const char *png;
- const char *widget;
- } map[] = {
- { .png = "continent_selection.jpg",
- .widget = "anastasis_gtk_continent_selection_image" },
- { .png = "country_selection.jpg",
- .widget = "anastasis_gtk_country_selection_image" },
- { .png = "user_attributes.png",
- .widget = "anastasis_gtk_user_attributes_image" },
- { .png = "authentication_methods.png",
- .widget = "anastasis_gtk_b_authentication_methods_image" },
- { .png = "policy_confirmation.png",
- .widget = "anastasis_gtk_b_policies_image" },
- { .png = "enter_secret.jpg",
- .widget = "anastasis_gtk_enter_secret_image" },
- { .png = "pay_with_taler.png",
- .widget = "anastasis_gtk_pay_image" },
- { .png = NULL,
- .widget = NULL },
- { .png = NULL,
- .widget = "anastasis_gtk_completed_image" }
- };
- char *path;
-
- if (gtk_widget_is_visible (GTK_WIDGET (GCG_get_main_window_object (
- "anastasis_gtk_illustration_vbox"))))
- {
- AG_hide ("anastasis_gtk_illustration_vbox");
- return;
- }
- AG_show ("anastasis_gtk_illustration_vbox");
- path = GNUNET_OS_installation_get_path (GNUNET_OS_IPK_PREFIX);
- if (NULL == path)
- {
- GNUNET_break (0);
- return;
- }
- for (unsigned int i = 0; NULL != map[i].png; i++)
- {
- GObject *img;
-
- img = GCG_get_main_window_object (map[i].widget);
- if (NULL == img)
- {
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
- "Could not find widget `%s' to set image path\n",
- map[i].widget);
- }
- else
- {
- char *ip;
-
- GNUNET_asprintf (&ip,
- "%s/share/anastasis/%s",
- path,
- map[i].png);
- gtk_image_set_from_file (GTK_IMAGE (img),
- ip);
- GNUNET_free (ip);
- }
- }
- GNUNET_free (path);
-}
-
-
void
AG_stop_long_action (void)
{