[gnome-panel] remove 'free the fish'



commit 177b253580d883e680fac47e38b6c48f70609b2d
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Mon Dec 19 01:32:45 2016 +0200

    remove 'free the fish'

 gnome-panel/Makefile.am          |    3 -
 gnome-panel/free-the-fish.c      |  365 --------------------------------------
 gnome-panel/free-the-fish.h      |   14 --
 gnome-panel/panel-context-menu.c |   29 ---
 gnome-panel/panel-run-dialog.c   |   16 --
 gnome-panel/panel.gresource.xml  |    1 -
 gnome-panel/wanda_no_sea.png     |  Bin 10621 -> 0 bytes
 7 files changed, 0 insertions(+), 428 deletions(-)
---
diff --git a/gnome-panel/Makefile.am b/gnome-panel/Makefile.am
index 0c195d1..58d1e59 100644
--- a/gnome-panel/Makefile.am
+++ b/gnome-panel/Makefile.am
@@ -21,7 +21,6 @@ panel_sources =                       \
        panel-widget.c          \
        button-widget.c         \
        xstuff.c                \
-       free-the-fish.c         \
        panel-session.c         \
        panel.c                 \
        applet.c                \
@@ -62,7 +61,6 @@ panel_headers =                       \
        panel-globals.h         \
        button-widget.h         \
        xstuff.h                \
-       free-the-fish.h         \
        panel-session.h         \
        panel.h                 \
        applet.h                \
@@ -226,7 +224,6 @@ desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
 EXTRA_DIST =                                   \
        $(ui_FILES)                             \
        panel.gresource.xml                     \
-       wanda_no_sea.png                        \
        $(desktop_in_in_files) \
        $(NULL)
 
diff --git a/gnome-panel/panel-context-menu.c b/gnome-panel/panel-context-menu.c
index da7102f..26c7650 100644
--- a/gnome-panel/panel-context-menu.c
+++ b/gnome-panel/panel-context-menu.c
@@ -35,7 +35,6 @@
 #include <libpanel-util/panel-error.h>
 #include <libpanel-util/panel-show.h>
 
-#include "free-the-fish.h"
 #include "panel-util.h"
 #include "panel.h"
 #include "menu.h"
@@ -66,36 +65,12 @@ panel_context_menu_delete_panel (PanelToplevel *toplevel)
         panel_delete (toplevel);
 }
 
-static gboolean
-panel_context_menu_check_for_screen (GtkWidget *w,
-                                    GdkEvent *ev,
-                                    gpointer data)
-{
-       static int times = 0;
-       if (!w) {
-               times = 0;
-               return FALSE;
-       }
-       if (ev->type != GDK_KEY_PRESS)
-               return FALSE;
-       if (ev->key.keyval == GDK_KEY_f ||
-           ev->key.keyval == GDK_KEY_F) {
-               times++;
-               if (times == 3) {
-                       times = 0;
-                       free_the_fish ();
-               }
-       }
-       return FALSE;
-}
-
 static void
 panel_context_menu_setup_delete_panel_item (GtkWidget     *menuitem,
                                             PanelToplevel *toplevel)
 {
        gboolean     sensitive;
 
-       panel_context_menu_check_for_screen (NULL, NULL, NULL);
        g_assert (PANEL_IS_TOPLEVEL (toplevel));
 
        sensitive =
@@ -200,9 +175,5 @@ panel_context_menu_create (PanelWidget *panel)
 
        panel_context_menu_build_edition (panel, retval);
 
-       g_signal_connect (retval, "event",
-                         G_CALLBACK (panel_context_menu_check_for_screen),
-                         NULL);
-
        return retval;
 }
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index 614dca7..d447355 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -48,7 +48,6 @@
 #include <libpanel-util/panel-show.h>
 #include <libpanel-util/panel-xdg.h>
 
-#include "free-the-fish.h"
 #include "panel-util.h"
 #include "panel-enums.h"
 #include "panel-stock-icons.h"
@@ -522,21 +521,6 @@ panel_run_dialog_execute (PanelRunDialog *dialog)
                return;
        }
 
-       /* evil eggies, do not translate! */
-       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")) {
-               catch_the_fish ();
-
-               g_free(command);
-               gtk_widget_destroy(dialog->run_dialog);
-               return;
-       }
-               
        error = NULL;
        disk = g_locale_from_utf8 (command, -1, NULL, NULL, &error);
 
diff --git a/gnome-panel/panel.gresource.xml b/gnome-panel/panel.gresource.xml
index 0858553..70c5695 100644
--- a/gnome-panel/panel.gresource.xml
+++ b/gnome-panel/panel.gresource.xml
@@ -10,6 +10,5 @@
     <file compressed="true">gp-properties-dialog.ui</file>
     <file compressed="true">panel-addto-dialog.ui</file>
     <file compressed="true">panel-run-dialog.ui</file>
-    <file>wanda_no_sea.png</file>
   </gresource>
 </gresources>


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]