Commit 7994b43b authored by Alberts Muktupāvels's avatar Alberts Muktupāvels
Browse files

desktop-background: remove private struct from DesktopWindow

parent dde52627
......@@ -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",
......
......@@ -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 {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment