[gnome-panel] remove PanelBackgroundChangedNotify
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] remove PanelBackgroundChangedNotify
- Date: Thu, 6 Oct 2016 22:20:21 +0000 (UTC)
commit 00433a2c2641dfee50a6123aefd389763e1e237e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Oct 6 21:20:51 2016 +0300
remove PanelBackgroundChangedNotify
gnome-panel/panel-background.c | 8 +-------
gnome-panel/panel-background.h | 11 +----------
gnome-panel/panel-toplevel.c | 10 +---------
3 files changed, 3 insertions(+), 26 deletions(-)
---
diff --git a/gnome-panel/panel-background.c b/gnome-panel/panel-background.c
index a82934f..d7c05af 100644
--- a/gnome-panel/panel-background.c
+++ b/gnome-panel/panel-background.c
@@ -102,8 +102,6 @@ panel_background_prepare (PanelBackground *background)
if (GTK_IS_WIDGET (widget))
gtk_widget_queue_draw (widget);
- background->notify_changed (background, background->user_data);
-
return TRUE;
}
@@ -772,15 +770,11 @@ panel_background_change_region (PanelBackground *background,
}
void
-panel_background_init (PanelBackground *background,
- PanelBackgroundChangedNotify notify_changed,
- gpointer user_data)
+panel_background_init (PanelBackground *background)
{
background->settings = NULL;
background->type = PANEL_BACK_NONE;
- background->notify_changed = notify_changed;
- background->user_data = user_data;
background->color.red = 0.;
background->color.blue = 0.;
diff --git a/gnome-panel/panel-background.h b/gnome-panel/panel-background.h
index 22e6f40..371ce62 100644
--- a/gnome-panel/panel-background.h
+++ b/gnome-panel/panel-background.h
@@ -31,18 +31,11 @@
typedef struct _PanelBackground PanelBackground;
-typedef void (*PanelBackgroundChangedNotify)
- (PanelBackground *background,
- gpointer user_data);
-
struct _PanelBackground {
GSettings *settings;
PanelBackgroundType type;
- PanelBackgroundChangedNotify notify_changed;
- gpointer user_data;
-
GdkRGBA color;
char *image;
GdkPixbuf *loaded_image;
@@ -67,9 +60,7 @@ struct _PanelBackground {
guint composited : 1;
};
-void panel_background_init (PanelBackground *background,
- PanelBackgroundChangedNotify notify_changed,
- gpointer user_data);
+void panel_background_init (PanelBackground *background);
void panel_background_settings_init (PanelBackground *background,
GSettings *settings);
void panel_background_free (PanelBackground *background);
diff --git a/gnome-panel/panel-toplevel.c b/gnome-panel/panel-toplevel.c
index aed80a0..c44066f 100644
--- a/gnome-panel/panel-toplevel.c
+++ b/gnome-panel/panel-toplevel.c
@@ -4067,12 +4067,6 @@ panel_toplevel_setup_widgets (PanelToplevel *toplevel)
}
static void
-background_changed (PanelBackground *background,
- PanelToplevel *toplevel)
-{
-}
-
-static void
panel_toplevel_init (PanelToplevel *toplevel)
{
GtkWidget *widget;
@@ -4183,9 +4177,7 @@ panel_toplevel_init (PanelToplevel *toplevel)
context = gtk_widget_get_style_context (GTK_WIDGET (toplevel));
gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
- panel_background_init (&toplevel->background,
- (PanelBackgroundChangedNotify) background_changed,
- toplevel);
+ panel_background_init (&toplevel->background);
}
PanelWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]