[gnome-panel] panel-widget: remove unused signal
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] panel-widget: remove unused signal
- Date: Tue, 13 Oct 2015 00:12:07 +0000 (UTC)
commit 65f12813fa7909dd4a3a8cf58db6cae389b07050
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Oct 13 01:27:24 2015 +0300
panel-widget: remove unused signal
gnome-panel/panel-widget.c | 18 +-----------------
gnome-panel/panel-widget.h | 1 -
2 files changed, 1 insertions(+), 18 deletions(-)
---
diff --git a/gnome-panel/panel-widget.c b/gnome-panel/panel-widget.c
index 5c45eb1..aaa8780 100644
--- a/gnome-panel/panel-widget.c
+++ b/gnome-panel/panel-widget.c
@@ -35,7 +35,6 @@ typedef enum {
G_DEFINE_TYPE (PanelWidget, panel_widget, GTK_TYPE_FIXED);
enum {
- SIZE_CHANGE_SIGNAL,
BACK_CHANGE_SIGNAL,
APPLET_MOVE_SIGNAL,
APPLET_ADDED_SIGNAL,
@@ -278,17 +277,6 @@ panel_widget_class_init (PanelWidgetClass *class)
GtkWidgetClass *widget_class = (GtkWidgetClass*) class;
GtkContainerClass *container_class = (GtkContainerClass*) class;
- panel_widget_signals[SIZE_CHANGE_SIGNAL] =
- g_signal_new ("size_change",
- G_TYPE_FROM_CLASS (object_class),
- G_SIGNAL_RUN_LAST,
- G_STRUCT_OFFSET (PanelWidgetClass, size_change),
- NULL,
- NULL,
- g_cclosure_marshal_VOID__VOID,
- G_TYPE_NONE,
- 0);
-
panel_widget_signals[BACK_CHANGE_SIGNAL] =
g_signal_new ("back_change",
G_TYPE_FROM_CLASS (object_class),
@@ -383,7 +371,6 @@ panel_widget_class_init (PanelWidgetClass *class)
G_TYPE_NONE,
0);
- class->size_change = NULL;
class->back_change = NULL;
class->applet_move = NULL;
class->applet_added = NULL;
@@ -2560,11 +2547,8 @@ panel_widget_set_size (PanelWidget *panel_widget,
return;
panel_widget->sz = size;
-
- queue_resize_on_all_applets (panel_widget);
-
- g_signal_emit (panel_widget, panel_widget_signals [SIZE_CHANGE_SIGNAL], 0);
+ queue_resize_on_all_applets (panel_widget);
gtk_widget_queue_resize (GTK_WIDGET (panel_widget));
}
diff --git a/gnome-panel/panel-widget.h b/gnome-panel/panel-widget.h
index a4df7ad..7860fb7 100644
--- a/gnome-panel/panel-widget.h
+++ b/gnome-panel/panel-widget.h
@@ -111,7 +111,6 @@ struct _PanelWidgetClass
{
GtkFixedClass parent_class;
- void (* size_change) (PanelWidget *panel);
void (* back_change) (PanelWidget *panel);
void (* applet_move) (PanelWidget *panel,
GtkWidget *applet);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]