[gnome-panel] libpanel-applet: remove change-background signal



commit 8ab4e78b1d8e7315e700ca67bb4a033159dd6533
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Wed Jul 27 00:59:14 2016 +0300

    libpanel-applet: remove change-background signal

 libpanel-applet/panel-applet.c |   22 ----------------------
 libpanel-applet/panel-applet.h |    4 ----
 2 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index 0611be4..de2a90a 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -109,7 +109,6 @@ struct _PanelAppletPrivate {
 
 enum {
         CHANGE_ORIENT,
-        CHANGE_BACKGROUND,
        MOVE_FOCUS_OUT_OF_APPLET,
         LAST_SIGNAL
 };
@@ -1512,8 +1511,6 @@ panel_applet_handle_background (PanelApplet *applet)
        gdk_window_set_background_pattern (window, pattern);
        gtk_widget_queue_draw (applet->priv->plug);
 
-       g_signal_emit (applet, panel_applet_signals [CHANGE_BACKGROUND], 0, pattern);
-
        if (pattern)
                cairo_pattern_destroy (pattern);
 }
@@ -1964,25 +1961,6 @@ panel_applet_class_init (PanelAppletClass *klass)
                              G_TYPE_UINT);
 
         /**
-         * PanelApplet::change-background:
-         * @applet: the #PanelApplet which emitted the signal.
-         * @pattern: the new background pattern for @applet, or %NULL if there is none.
-         *
-         * Emitted when the background of @applet has changed.
-         **/
-       panel_applet_signals [CHANGE_BACKGROUND] =
-                g_signal_new ("change_background",
-                              G_TYPE_FROM_CLASS (klass),
-                              G_SIGNAL_RUN_LAST,
-                              G_STRUCT_OFFSET (PanelAppletClass, change_background),
-                              NULL,
-                             NULL,
-                              g_cclosure_marshal_VOID__BOXED,
-                              G_TYPE_NONE,
-                             1,
-                             CAIRO_GOBJECT_TYPE_PATTERN);
-
-        /**
          * PanelApplet::move-focus-out-of-applet: (skip)
          * @applet: the #PanelApplet which emitted the signal.
          * @direction: the move direction.
diff --git a/libpanel-applet/panel-applet.h b/libpanel-applet/panel-applet.h
index b6438ac..3899de5 100644
--- a/libpanel-applet/panel-applet.h
+++ b/libpanel-applet/panel-applet.h
@@ -145,8 +145,6 @@ struct _PanelApplet {
  * @event_box_class: The parent class.
  * @change_orient: Signal is emitted when the orientation of applet
  *    has changed.
- * @change_background: Signal is emmited when the background af applet
- *    has changed.
  * @move_focus_out_of_applet: Signal is emmited when the focus is moved
  *    out of applet. This is an implementation detail.
  *
@@ -157,8 +155,6 @@ struct _PanelAppletClass {
 
        void (*change_orient) (PanelApplet       *applet,
                               PanelAppletOrient  orient);
-       void (*change_background) (PanelApplet     *applet,
-                                  cairo_pattern_t *pattern);
        void (*move_focus_out_of_applet) (PanelApplet        *frame,
                                          GtkDirectionType    direction);
 };


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