[gnome-panel/wip/free-the-fish: 3/8] Rename to free-the-fish
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/wip/free-the-fish: 3/8] Rename to free-the-fish
- Date: Tue, 2 Jun 2015 11:02:54 +0000 (UTC)
commit 55e7468612014a53b86cf5dd33d2c840c2aa0480
Author: Sebastian Geiger <sbastig gmx net>
Date: Tue Jun 2 12:21:31 2015 +0200
Rename to free-the-fish
gnome-panel/Makefile.am | 4 ++--
gnome-panel/{nothing.cP => free-the-fish.c} | 4 ++--
gnome-panel/free-the-fish.h | 15 +++++++++++++++
gnome-panel/nothing.h | 10 ----------
gnome-panel/panel-context-menu.c | 4 ++--
gnome-panel/panel-run-dialog.c | 4 ++--
6 files changed, 23 insertions(+), 18 deletions(-)
---
diff --git a/gnome-panel/Makefile.am b/gnome-panel/Makefile.am
index 912c146..7901657 100644
--- a/gnome-panel/Makefile.am
+++ b/gnome-panel/Makefile.am
@@ -23,6 +23,7 @@ panel_sources = \
panel-widget.c \
button-widget.c \
xstuff.c \
+ free-the-fish.c \
panel-session.c \
panel-compatibility.c \
panel.c \
@@ -70,6 +71,7 @@ panel_headers = \
panel-globals.h \
button-widget.h \
xstuff.h \
+ free-the-fish.h \
panel-session.h \
panel-compatibility.h \
panel.h \
@@ -257,8 +259,6 @@ EXTRA_DIST = \
HighContrast.css \
$(uitest_FILES) \
panel-test-applets.gresource.xml \
- nothing.cP \
- nothing.h \
panel-marshal.list \
$(desktop_in_files)
diff --git a/gnome-panel/nothing.cP b/gnome-panel/free-the-fish.c
similarity index 99%
rename from gnome-panel/nothing.cP
rename to gnome-panel/free-the-fish.c
index a99d97f..fd17515 100644
--- a/gnome-panel/nothing.cP
+++ b/gnome-panel/free-the-fish.c
@@ -1,6 +1,6 @@
#include <X11/Xlib.h>
-#include "nothing.h"
+#include "free-the-fish.h"
/* phish code */
#define PHSHFRAMES 8
@@ -384,7 +384,7 @@ check_screen_timeout (gpointer data)
}
void
-start_screen_check (void)
+start_wanda_the_fish(void)
{
if (screen_check_id > 0)
g_source_remove (screen_check_id);
diff --git a/gnome-panel/free-the-fish.h b/gnome-panel/free-the-fish.h
new file mode 100644
index 0000000..03f4d45
--- /dev/null
+++ b/gnome-panel/free-the-fish.h
@@ -0,0 +1,15 @@
+#include "glib.h"
+
+#ifndef NOTHING_H
+#define NOTHING_H
+
+G_BEGIN_DECLS
+
+/*
+ * This starts the "free the fish" widget. It draws a little fish on the screen that is "swimming" around.
+ */
+void start_wanda_the_fish (void);
+
+G_END_DECLS
+
+#endif
diff --git a/gnome-panel/panel-context-menu.c b/gnome-panel/panel-context-menu.c
index 607788d..24e6709 100644
--- a/gnome-panel/panel-context-menu.c
+++ b/gnome-panel/panel-context-menu.c
@@ -35,7 +35,7 @@
#include <libpanel-util/panel-error.h>
#include <libpanel-util/panel-show.h>
-#include "nothing.h"
+#include "free-the-fish.h"
#include "panel-util.h"
#include "panel.h"
#include "menu.h"
@@ -83,7 +83,7 @@ panel_context_menu_check_for_screen (GtkWidget *w,
times++;
if (times == 3) {
times = 0;
- start_screen_check ();
+ start_wanda_the_fish();
}
}
return FALSE;
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index e76a067..7ae3497 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -48,7 +48,7 @@
#include <libpanel-util/panel-show.h>
#include <libpanel-util/panel-xdg.h>
-#include "nothing.h"
+#include "free-the-fish.h"
#include "panel-util.h"
#include "panel-globals.h"
#include "panel-enums.h"
@@ -530,7 +530,7 @@ panel_run_dialog_execute (PanelRunDialog *dialog)
/* evil eggies, do not translate! */
if (!strcmp (command, "free the fish")) {
- start_screen_check ();
+ start_wanda_the_fish();
g_free (command);
gtk_widget_destroy (dialog->run_dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]