[Nautilus-list] theme selector patch
- From: Dave Camp <dave ximian com>
- To: nautilus-list eazel com
- Subject: [Nautilus-list] theme selector patch
- Date: 07 Jan 2002 11:34:43 -0500
This patch re-enables the theme selector in the preferences dialog and
fixes a few things in the theme selector.
-dave
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/nautilus/ChangeLog,v
retrieving revision 1.4896
diff -u -r1.4896 ChangeLog
--- ChangeLog 2002/01/05 21:24:16 1.4896
+++ ChangeLog 2002/01/07 16:31:59
@@ -1,3 +1,14 @@
+2002-01-07 Dave Camp <dave ximian com>
+
+ * src/nautilus-preferences-dialog.c
+ (preferences_dialog_populate_themes_group): Take out the return.
+ The EelLabel exorcism did in fact mostly fix the theme selector.
+
+ * src/nautilus-theme-selector.c (theme_selector_finalize): Moved here
+ from theme_selector_destroy.
+ (nautilus_theme_selector_class_init): Fixed the argument type list for
+ the theme_changed signal, and reflect the destroy->finalize change.
+
2002-01-05 Michael Meeks <michael ximian com>
* configure.in (IMLIB_REQUIRED, GDK_PIXBUF_REQUIRED),
Index: src/nautilus-preferences-dialog.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-preferences-dialog.c,v
retrieving revision 1.17
diff -u -r1.17 nautilus-preferences-dialog.c
--- src/nautilus-preferences-dialog.c 2001/11/15 11:16:01 1.17
+++ src/nautilus-preferences-dialog.c 2002/01/07 16:32:00
@@ -527,12 +527,6 @@
g_return_if_fail (EEL_IS_PREFERENCES_GROUP (group));
- /* FIXME: The image chooser is broken because of EelLabel usage.
- Im hopeful that a general exorcism of EelLabel will fix this
- along with many other label related problems.
- */
- return;
-
child = nautilus_theme_selector_new ();
parent_window = gtk_widget_get_ancestor (GTK_WIDGET (group), GTK_TYPE_WINDOW);
Index: src/nautilus-theme-selector.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-theme-selector.c,v
retrieving revision 1.59
diff -u -r1.59 nautilus-theme-selector.c
--- src/nautilus-theme-selector.c 2001/11/09 02:05:48 1.59
+++ src/nautilus-theme-selector.c 2002/01/07 16:32:00
@@ -77,7 +77,7 @@
/* GtkObjectClass methods */
static void nautilus_theme_selector_class_init (NautilusThemeSelectorClass *theme_selector_class);
static void nautilus_theme_selector_init (NautilusThemeSelector *theme_selector);
-static void theme_selector_destroy (GtkObject *object);
+static void theme_selector_finalize (GObject *object);
/* Private stuff */
static void theme_selector_populate_list (EelImageChooser *image_chooser,
@@ -105,12 +105,12 @@
static void
nautilus_theme_selector_class_init (NautilusThemeSelectorClass *theme_selector_class)
{
- GtkObjectClass *object_class;
+ GObjectClass *object_class;
- object_class = GTK_OBJECT_CLASS (theme_selector_class);
+ object_class = G_OBJECT_CLASS (theme_selector_class);
- /* GtkObjectClass */
- object_class->destroy = theme_selector_destroy;
+ /* GObjectClass */
+ object_class->finalize = theme_selector_finalize;
/* Signals */
theme_selector_signals[THEME_CHANGED] = g_signal_new
@@ -120,7 +120,7 @@
0,
NULL, NULL,
g_cclosure_marshal_VOID__STRING,
- G_TYPE_NONE, 0);
+ G_TYPE_NONE, 1, G_TYPE_STRING);
}
static void
@@ -519,7 +519,7 @@
/* GtkObjectClass methods */
static void
-theme_selector_destroy (GtkObject *object)
+theme_selector_finalize (GObject *object)
{
NautilusThemeSelector *theme_selector;
@@ -528,10 +528,8 @@
theme_selector = NAUTILUS_THEME_SELECTOR (object);
theme_selector->details->theme_selector_changed_connection = 0;
- g_free (theme_selector->details);
-
- /* Chain destroy */
- EEL_CALL_PARENT (GTK_OBJECT_CLASS, destroy, (object));
+ /* Chain finalize */
+ EEL_CALL_PARENT (G_OBJECT_CLASS, finalize, (object));
}
/* Private stuff */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]