[gnome-panel/wip/free-the-fish: 9/9] 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: 9/9] Free-the-fish: Allow stopping the fish
- Date: Tue, 2 Jun 2015 13:00:46 +0000 (UTC)
commit dc2b8abbd45e71a438d8f90584c0b95c3b036148
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 | 6 ++++++
gnome-panel/panel-run-dialog.c | 8 +++++++-
3 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/gnome-panel/free-the-fish.c b/gnome-panel/free-the-fish.c
index d0fecdf..3a7583e 100644
--- a/gnome-panel/free-the-fish.c
+++ b/gnome-panel/free-the-fish.c
@@ -397,3 +397,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 841f990..f9a79bc 100644
--- a/gnome-panel/free-the-fish.h
+++ b/gnome-panel/free-the-fish.h
@@ -11,6 +11,12 @@ G_BEGIN_DECLS
*/
void free_the_fish(void);
+/**
+ * This will catch the fish and stop it from reappearing. The fish will start moving faster and disappear
+ * at the edge of the screen.
+ */
+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 4f07710..975ba5b 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]