[gnome-flashback] desktop-background: remove private struct from DesktopWindow
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] desktop-background: remove private struct from DesktopWindow
- Date: Sun, 13 Sep 2015 18:26:20 +0000 (UTC)
commit 7994b43baa25e210f1df4cc11a74023f1155b391
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sun Sep 13 19:18:40 2015 +0300
desktop-background: remove private struct from DesktopWindow
.../libdesktop-background/desktop-window.c | 8 +-------
.../libdesktop-background/desktop-window.h | 4 +---
2 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/gnome-flashback/libdesktop-background/desktop-window.c
b/gnome-flashback/libdesktop-background/desktop-window.c
index 667c94b..9713099 100644
--- a/gnome-flashback/libdesktop-background/desktop-window.c
+++ b/gnome-flashback/libdesktop-background/desktop-window.c
@@ -19,12 +19,7 @@
#include <X11/Xatom.h>
#include "desktop-window.h"
-struct _DesktopWindowPrivate {
- gulong size_changed_id;
- gulong monitors_changed_id;
-};
-
-G_DEFINE_TYPE_WITH_PRIVATE (DesktopWindow, desktop_window, GTK_TYPE_WINDOW);
+G_DEFINE_TYPE (DesktopWindow, desktop_window, GTK_TYPE_WINDOW)
static void
desktop_window_screen_changed (GdkScreen *screen,
@@ -57,7 +52,6 @@ desktop_window_init (DesktopWindow *window)
{
GdkScreen *screen;
- window->priv = desktop_window_get_instance_private (window);
screen = gdk_screen_get_default ();
g_signal_connect_object (screen, "monitors-changed",
diff --git a/gnome-flashback/libdesktop-background/desktop-window.h
b/gnome-flashback/libdesktop-background/desktop-window.h
index 5d62f98..9735c81 100644
--- a/gnome-flashback/libdesktop-background/desktop-window.h
+++ b/gnome-flashback/libdesktop-background/desktop-window.h
@@ -28,11 +28,9 @@ G_BEGIN_DECLS
typedef struct _DesktopWindow DesktopWindow;
typedef struct _DesktopWindowClass DesktopWindowClass;
-typedef struct _DesktopWindowPrivate DesktopWindowPrivate;
struct _DesktopWindow {
- GtkWindow parent;
- DesktopWindowPrivate *priv;
+ GtkWindow parent;
};
struct _DesktopWindowClass {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]