[gnome-panel/wip/free-the-fish: 8/8] Free-the-fish: Allow stopping the fish
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/free-the-fish: 8/8] Free-the-fish: Allow stopping the fish
- Date: Tue, 2 Jun 2015 14:52:55 +0000 (UTC)
commit 6e978cac8c1d5eb7260bc522214d149592780694
Author: Sebastian Geiger <sbastig gmx net>
Date: Mon Jun 1 18:46:48 2015 +0200
Free-the-fish: Allow stopping the fish
gnome-panel/free-the-fish.c | 8 ++++++++
gnome-panel/free-the-fish.h | 2 ++
gnome-panel/panel-run-dialog.c | 8 +++++++-
3 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/free-the-fish.c b/gnome-panel/free-the-fish.c
index 297b4ac..1482cee 100644
--- a/gnome-panel/free-the-fish.c
+++ b/gnome-panel/free-the-fish.c
@@ -387,3 +387,11 @@ free_the_fish (void)
check_screen_timeout (NULL);
}
+
+void
+stop_wanda_the_fish (void)
+{
+ if(screen_check_id > 0)
+ g_source_remove(screen_check_id);
+ fish_start_hide_mode();
+}
diff --git a/gnome-panel/free-the-fish.h b/gnome-panel/free-the-fish.h
index 6bd9c80..eef84c2 100644
--- a/gnome-panel/free-the-fish.h
+++ b/gnome-panel/free-the-fish.h
@@ -7,6 +7,8 @@ G_BEGIN_DECLS
void free_the_fish (void);
+void stop_wanda_the_fish (void);
+
G_END_DECLS
#endif
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index 7a2e34c..6005992 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -528,13 +528,19 @@ panel_run_dialog_execute (PanelRunDialog *dialog)
return;
}
- /* evil eggies, do not translate! */
+ /* These commands are two hidden easter eggs. A fish will appear on the screen and starts swimming
around. */
if (!strcmp (command, "free the fish")) {
free_the_fish ();
g_free (command);
gtk_widget_destroy (dialog->run_dialog);
return;
+ } else if (!strcmp (command, "catch the fish")) {
+ stop_wanda_the_fish ();
+
+ g_free(command);
+ gtk_widget_destroy(dialog->run_dialog);
+ return;
}
error = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]