[nautilus] Fix gobject warning about nonexisting property
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Fix gobject warning about nonexisting property
- Date: Sat, 18 Jun 2011 15:08:16 +0000 (UTC)
commit 95d45f1994795942774b039ba0de6933d9ffa5c7
Author: Paolo Borelli <pborelli gnome org>
Date: Sat Jun 18 17:03:13 2011 +0200
Fix gobject warning about nonexisting property
NautilusDesktopWindow does not have an "app" propety anymore.
src/nautilus-application.c | 5 ++---
src/nautilus-desktop-window.c | 4 +---
src/nautilus-desktop-window.h | 4 +---
3 files changed, 4 insertions(+), 9 deletions(-)
---
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 6010e91..2c751a3 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -399,9 +399,8 @@ nautilus_application_create_desktop_windows (NautilusApplication *application)
selection_widget = get_desktop_manager_selection (display, i);
if (selection_widget != NULL) {
- window = nautilus_desktop_window_new (application,
- gdk_display_get_screen (display, i));
-
+ window = nautilus_desktop_window_new (gdk_display_get_screen (display, i));
+
g_signal_connect (selection_widget, "selection_clear_event",
G_CALLBACK (selection_clear_event_cb), window);
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index 9e9acd9..6e5778a 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -146,8 +146,7 @@ nautilus_desktop_window_screen_size_changed (GdkScreen *screen,
}
NautilusDesktopWindow *
-nautilus_desktop_window_new (NautilusApplication *application,
- GdkScreen *screen)
+nautilus_desktop_window_new (GdkScreen *screen)
{
NautilusDesktopWindow *window;
int width_request, height_request;
@@ -157,7 +156,6 @@ nautilus_desktop_window_new (NautilusApplication *application,
window = g_object_new (NAUTILUS_TYPE_DESKTOP_WINDOW,
"disable-chrome", TRUE,
- "app", application,
"width_request", width_request,
"height_request", height_request,
"screen", screen,
diff --git a/src/nautilus-desktop-window.h b/src/nautilus-desktop-window.h
index d0d4b3e..e2ed780 100644
--- a/src/nautilus-desktop-window.h
+++ b/src/nautilus-desktop-window.h
@@ -29,7 +29,6 @@
#define NAUTILUS_DESKTOP_WINDOW_H
#include "nautilus-window.h"
-#include "nautilus-application.h"
#define NAUTILUS_TYPE_DESKTOP_WINDOW nautilus_desktop_window_get_type()
#define NAUTILUS_DESKTOP_WINDOW(obj) \
@@ -56,8 +55,7 @@ typedef struct {
} NautilusDesktopWindowClass;
GType nautilus_desktop_window_get_type (void);
-NautilusDesktopWindow *nautilus_desktop_window_new (NautilusApplication *application,
- GdkScreen *screen);
+NautilusDesktopWindow *nautilus_desktop_window_new (GdkScreen *screen);
void nautilus_desktop_window_update_directory (NautilusDesktopWindow *window);
gboolean nautilus_desktop_window_loaded (NautilusDesktopWindow *window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]