? gnome-doc-utils.make
? stickynotes-trans-2.diff
? stickynotes-trans-3.diff
? stickynotes-trans-4.patch
? stickynotes-trans.diff
? stickynotes/docs/stickynotes_applet-C.omf
? stickynotes/docs/stickynotes_applet-es.omf
? stickynotes/docs/stickynotes_applet-uk.omf
? stickynotes/docs/es/.xml2po.mo
? stickynotes/docs/es/stickynotes_applet.xml
? stickynotes/docs/uk/.xml2po.mo
? stickynotes/docs/uk/stickynotes_applet.xml
Index: stickynotes/ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/ChangeLog,v
retrieving revision 1.148
diff -u -b -B -r1.148 ChangeLog
--- stickynotes/ChangeLog	21 Dec 2005 16:43:17 -0000	1.148
+++ stickynotes/ChangeLog	29 Dec 2005 18:59:08 -0000
@@ -1,3 +1,10 @@
+2005-12-29  Nicolas Trangez  <eikke@eikke.com
+
+	* stickynotes.c, ststickynotes.glade, stickynotes.h,
+	stickynotes.schemas.in, stickynotes_applet.c, stickynotes_applet.h,
+	stickynotes_applet_callbacks.c, TODO: Partial fix for #150493: Add
+	transparency support using _NET_WM_WINDOW_OPACITY. See TODO
+
 2005-12-22  Davyd Madeley  <davyd@madeley.id.au>
 
 	* stickynotes.c:
Index: stickynotes/TODO
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/TODO,v
retrieving revision 1.36
diff -u -b -B -r1.36 TODO
--- stickynotes/TODO	15 Jul 2003 23:53:29 -0000	1.36
+++ stickynotes/TODO	29 Dec 2005 18:59:08 -0000
@@ -10,3 +10,9 @@
   are not locked/unlocked
 	- but how?
 
+* The opacity_spin control in the preferences dialog should be replaced 
+  by controls similar to the ones used in the Preferences dialog of the
+  panel (slider with labels).
+  Note transparency should be updated when gconf value is updated.
+  Transparency support should be disabled when XComposite is not available
+  in the X server.
Index: stickynotes/stickynotes.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes.c,v
retrieving revision 1.68
diff -u -b -B -r1.68 stickynotes.c
--- stickynotes/stickynotes.c	21 Dec 2005 16:43:17 -0000	1.68
+++ stickynotes/stickynotes.c	29 Dec 2005 18:59:10 -0000
@@ -167,6 +167,10 @@
 	stickynote_set_locked(note, FALSE);
 
 	gtk_widget_realize (note->w_window);
+        /* Make the note semi-transparent */
+        stickynote_set_transparency(note, 
+                        gconf_client_get_int(stickynotes->gconf,
+                                GCONF_PATH "/defaults/opacity", NULL));
 
 	/* gnome_popup_menu_*() are deprecated. Rewrite to use gtk_menu_popup_*()? */
 	/* Connect a popup menu to all buttons and title */
@@ -600,6 +604,29 @@
 				   x, y, width, height);
 		gtk_window_iconify(GTK_WINDOW (note->w_window));
 	}
+}
+
+#define COMPOSITE_OPAQUE 0xffffffff
+#define COMPOSITE_OPACITY_PROP "_NET_WM_WINDOW_OPACITY"
+
+void
+stickynote_set_transparency (StickyNote *note, guint opacity)
+{
+        unsigned int real_opacity = 0;
+        Display *dpy = NULL;
+
+        g_return_if_fail (note != NULL);
+        g_return_if_fail (note->w_window != NULL);
+        g_return_if_fail (GTK_IS_WINDOW(note->w_window));
+
+        real_opacity = (unsigned int) ((gdouble)((gdouble)opacity / 100.) * COMPOSITE_OPAQUE);
+
+        dpy = gdk_x11_drawable_get_xdisplay (GDK_WINDOW(GTK_WIDGET(note->w_window)->window));
+        g_return_if_fail (dpy != NULL);
+
+        g_debug ("Setting note window XComposite opacity to %u", real_opacity);
+        XChangeProperty (dpy, GDK_WINDOW_XWINDOW(GDK_WINDOW(GTK_WIDGET(note->w_window)->window)), XInternAtom (dpy, COMPOSITE_OPACITY_PROP, False),  XA_CARDINAL, 32, PropModeReplace, (unsigned char *) &real_opacity, 1L);
+        XSync (dpy, False);
 }
 
 /* Add a sticky note */
Index: stickynotes/stickynotes.glade
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes.glade,v
retrieving revision 1.40
diff -u -b -B -r1.40 stickynotes.glade
--- stickynotes/stickynotes.glade	9 Jan 2005 15:13:39 -0000	1.40
+++ stickynotes/stickynotes.glade	29 Dec 2005 18:59:12 -0000
@@ -16,6 +16,8 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="urgency_hint">False</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -89,6 +91,10 @@
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="padding">0</property>
@@ -116,6 +122,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -127,7 +137,7 @@
 		  <child>
 		    <widget class="GtkTable" id="table6">
 		      <property name="visible">True</property>
-		      <property name="n_rows">7</property>
+		      <property name="n_rows">8</property>
 		      <property name="n_columns">2</property>
 		      <property name="homogeneous">False</property>
 		      <property name="row_spacing">6</property>
@@ -147,6 +157,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">width_spin</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -172,6 +186,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">height_spin</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -285,6 +303,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">default_font</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -350,6 +372,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">default_color</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -375,6 +401,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">font_color</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -402,6 +432,56 @@
 			  <property name="y_options"></property>
 			</packing>
 		      </child>
+
+		      <child>
+			<widget class="GtkLabel" id="opacity_label">
+			  <property name="visible">True</property>
+			  <property name="label" translatable="yes">_Opacity:</property>
+			  <property name="use_underline">True</property>
+			  <property name="use_markup">False</property>
+			  <property name="justify">GTK_JUSTIFY_LEFT</property>
+			  <property name="wrap">False</property>
+			  <property name="selectable">False</property>
+			  <property name="xalign">0</property>
+			  <property name="yalign">0.5</property>
+			  <property name="xpad">0</property>
+			  <property name="ypad">0</property>
+			  <property name="mnemonic_widget">opacity_spin</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
+			</widget>
+			<packing>
+			  <property name="left_attach">0</property>
+			  <property name="right_attach">1</property>
+			  <property name="top_attach">7</property>
+			  <property name="bottom_attach">8</property>
+			  <property name="x_options">fill</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
+
+		      <child>
+			<widget class="GtkSpinButton" id="opacity_spin">
+			  <property name="visible">True</property>
+			  <property name="can_focus">True</property>
+			  <property name="climb_rate">1</property>
+			  <property name="digits">0</property>
+			  <property name="numeric">True</property>
+			  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
+			  <property name="snap_to_ticks">False</property>
+			  <property name="wrap">False</property>
+			  <property name="adjustment">100 0 100 1 10 10</property>
+			</widget>
+			<packing>
+			  <property name="left_attach">1</property>
+			  <property name="right_attach">2</property>
+			  <property name="top_attach">7</property>
+			  <property name="bottom_attach">8</property>
+			  <property name="y_options"></property>
+			</packing>
+		      </child>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -443,6 +523,10 @@
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="padding">0</property>
@@ -470,6 +554,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -575,6 +663,8 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="urgency_hint">False</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -661,6 +751,10 @@
 	      <property name="yalign">0</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="padding">0</property>
@@ -692,6 +786,8 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="urgency_hint">False</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -775,6 +871,10 @@
 			  <property name="yalign">0.5</property>
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="padding">0</property>
@@ -836,6 +936,10 @@
 	      <property name="yalign">0</property>
 	      <property name="xpad">0</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="padding">0</property>
@@ -866,6 +970,8 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_NORMAL</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="urgency_hint">False</property>
 
   <child>
     <widget class="GtkVBox" id="vbox10">
@@ -916,6 +1022,10 @@
 	      <property name="yalign">0.5</property>
 	      <property name="xpad">2</property>
 	      <property name="ypad">0</property>
+	      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+	      <property name="width_chars">-1</property>
+	      <property name="single_line_mode">False</property>
+	      <property name="angle">0</property>
 	    </widget>
 	    <packing>
 	      <property name="padding">0</property>
@@ -1130,6 +1240,8 @@
   <property name="skip_pager_hint">False</property>
   <property name="type_hint">GDK_WINDOW_TYPE_HINT_DIALOG</property>
   <property name="gravity">GDK_GRAVITY_NORTH_WEST</property>
+  <property name="focus_on_map">True</property>
+  <property name="urgency_hint">False</property>
   <property name="has_separator">False</property>
 
   <child internal-child="vbox">
@@ -1203,6 +1315,10 @@
 		  <property name="yalign">0.5</property>
 		  <property name="xpad">0</property>
 		  <property name="ypad">0</property>
+		  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		  <property name="width_chars">-1</property>
+		  <property name="single_line_mode">False</property>
+		  <property name="angle">0</property>
 		</widget>
 		<packing>
 		  <property name="padding">0</property>
@@ -1230,6 +1346,10 @@
 		      <property name="yalign">0.5</property>
 		      <property name="xpad">0</property>
 		      <property name="ypad">0</property>
+		      <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+		      <property name="width_chars">-1</property>
+		      <property name="single_line_mode">False</property>
+		      <property name="angle">0</property>
 		    </widget>
 		    <packing>
 		      <property name="padding">0</property>
@@ -1261,6 +1381,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">title_entry</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1351,6 +1475,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">note_color</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1417,6 +1545,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">note_color</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
@@ -1442,6 +1574,10 @@
 			  <property name="xpad">0</property>
 			  <property name="ypad">0</property>
 			  <property name="mnemonic_widget">font_color</property>
+			  <property name="ellipsize">PANGO_ELLIPSIZE_NONE</property>
+			  <property name="width_chars">-1</property>
+			  <property name="single_line_mode">False</property>
+			  <property name="angle">0</property>
 			</widget>
 			<packing>
 			  <property name="left_attach">0</property>
Index: stickynotes/stickynotes.h
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes.h,v
retrieving revision 1.17
diff -u -b -B -r1.17 stickynotes.h
--- stickynotes/stickynotes.h	9 Jan 2005 15:42:42 -0000	1.17
+++ stickynotes/stickynotes.h	29 Dec 2005 18:59:12 -0000
@@ -81,6 +81,7 @@
 void stickynote_set_font(StickyNote *note, const gchar* font_str, gboolean save);
 void stickynote_set_locked(StickyNote *note, gboolean locked);
 void stickynote_set_visible(StickyNote *note, gboolean visible);
+void stickynote_set_transparency(StickyNote *win, guint opacity);
 
 void stickynote_change_properties(StickyNote *note);
 
Index: stickynotes/stickynotes.schemas.in
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes.schemas.in,v
retrieving revision 1.17
diff -u -b -B -r1.17 stickynotes.schemas.in
--- stickynotes/stickynotes.schemas.in	13 Jul 2005 13:38:36 -0000	1.17
+++ stickynotes/stickynotes.schemas.in	29 Dec 2005 18:59:12 -0000
@@ -26,6 +26,18 @@
 </schema>
 
 <schema>
+        <key>/schemas/apps/stickynotes_applet/defaults/opacity</key>
+        <applyto>/apps/stickynotes_applet/defaults/opacity</applyto>
+        <owner>stickynotes_applet</owner>
+        <type>int</type>
+        <default>100</default>
+        <locale name="C">
+                <short>Default opacity for new notes</short>
+                <long>Default opacity for new sticky notes in percent.</long>
+        </locale>
+</schema>
+
+<schema>
 	<key>/schemas/apps/stickynotes_applet/defaults/color</key>
 	<applyto>/apps/stickynotes_applet/defaults/color</applyto>
 	<owner>stickynotes_applet</owner>
Index: stickynotes/stickynotes_applet.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes_applet.c,v
retrieving revision 1.65
diff -u -b -B -r1.65 stickynotes_applet.c
--- stickynotes/stickynotes_applet.c	15 Nov 2005 02:21:15 -0000	1.65
+++ stickynotes/stickynotes_applet.c	29 Dec 2005 18:59:13 -0000
@@ -217,6 +217,9 @@
 	stickynotes->w_prefs_height = gtk_spin_button_get_adjustment (
 			GTK_SPIN_BUTTON (glade_xml_get_widget (
 					stickynotes->prefs, "height_spin")));
+        stickynotes->w_prefs_opacity = gtk_spin_button_get_adjustment (
+                        GTK_SPIN_BUTTON (glade_xml_get_widget (
+                                        stickynotes->prefs, "opacity_spin")));
 	stickynotes->w_prefs_color = glade_xml_get_widget (stickynotes->prefs,
 			"default_color");
 	stickynotes->w_prefs_font_color = glade_xml_get_widget (
@@ -247,6 +250,9 @@
 	g_signal_connect_swapped (G_OBJECT (stickynotes->w_prefs_height),
 			"value-changed",
 			G_CALLBACK (preferences_save_cb), NULL);
+        g_signal_connect_swapped (G_OBJECT (stickynotes->w_prefs_opacity),
+                        "value-changed",
+                        G_CALLBACK (preferences_save_cb), NULL);
 	g_signal_connect_swapped (G_OBJECT (stickynotes->w_prefs_sys_color),
 			"toggled",
 			G_CALLBACK (preferences_save_cb), NULL);
@@ -268,6 +274,7 @@
 
 		gtk_size_group_add_widget(group, glade_xml_get_widget(stickynotes->prefs, "width_label"));
 		gtk_size_group_add_widget(group, glade_xml_get_widget(stickynotes->prefs, "height_label"));
+                gtk_size_group_add_widget(group, glade_xml_get_widget(stickynotes->prefs, "opacity_label"));
 		gtk_size_group_add_widget(group, glade_xml_get_widget(stickynotes->prefs, "color_label"));
 
 		g_object_unref(group);
@@ -294,6 +301,16 @@
 				FALSE);
 	}
 	if (!gconf_client_key_is_writable (stickynotes->gconf,
+                                GCONF_PATH "/defaults/opacity", NULL))
+        {
+                gtk_widget_set_sensitive (glade_xml_get_widget (
+                                        stickynotes->prefs, "opacity_label"),
+                                FALSE);
+                gtk_widget_set_sensitive (glade_xml_get_widget (
+                                        stickynotes->prefs, "opacity_spin"),
+                                FALSE);
+        }
+	if (!gconf_client_key_is_writable (stickynotes->gconf,
 				GCONF_PATH "/defaults/color", NULL))
 	{
 		gtk_widget_set_sensitive (glade_xml_get_widget (
@@ -448,10 +465,10 @@
 	char *font_str;
 	char *color_str, *font_color_str;
 	GdkColor color, font_color;
+        gint width = 0, opacity = 0;
 	
-	gint width = gconf_client_get_int(stickynotes->gconf,
+	width = gconf_client_get_int(stickynotes->gconf,
 			GCONF_PATH "/defaults/width", NULL);
-
 	width = MAX (width, 1);
 	height = gconf_client_get_int (stickynotes->gconf,
 			GCONF_PATH "/defaults/height", NULL);
@@ -456,6 +473,9 @@
 	height = gconf_client_get_int (stickynotes->gconf,
 			GCONF_PATH "/defaults/height", NULL);
 	height = MAX (height, 1);
+        opacity = gconf_client_get_int(stickynotes->gconf,
+                        GCONF_PATH "/defaults/opacity", NULL);
+        opacity = MAX (opacity, 0);
 
 	sys_color = gconf_client_get_bool (stickynotes->gconf,
 			GCONF_PATH "/settings/use_system_color", NULL);
@@ -497,6 +517,7 @@
 
 	gtk_adjustment_set_value (stickynotes->w_prefs_width, width);
 	gtk_adjustment_set_value (stickynotes->w_prefs_height, height);
+        gtk_adjustment_set_value (stickynotes->w_prefs_opacity, opacity);
 	gtk_toggle_button_set_active (
 			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_sys_color),
 			sys_color);
Index: stickynotes/stickynotes_applet.h
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes_applet.h,v
retrieving revision 1.29
diff -u -b -B -r1.29 stickynotes_applet.h
--- stickynotes/stickynotes_applet.h	13 Jul 2005 13:38:36 -0000	1.29
+++ stickynotes/stickynotes_applet.h	29 Dec 2005 18:59:14 -0000
@@ -49,6 +49,7 @@
 	GtkWidget *w_prefs;		/* The prefs dialog */
 	GtkAdjustment *w_prefs_width;
 	GtkAdjustment *w_prefs_height;
+        GtkAdjustment *w_prefs_opacity;
 	GtkWidget *w_prefs_color;
 	GtkWidget *w_prefs_font_color;
 	GtkWidget *w_prefs_sys_color;
Index: stickynotes/stickynotes_applet_callbacks.c
===================================================================
RCS file: /cvs/gnome/gnome-applets/stickynotes/stickynotes_applet_callbacks.c,v
retrieving revision 1.66
diff -u -b -B -r1.66 stickynotes_applet_callbacks.c
--- stickynotes/stickynotes_applet_callbacks.c	16 Nov 2005 15:50:44 -0000	1.66
+++ stickynotes/stickynotes_applet_callbacks.c	29 Dec 2005 18:59:15 -0000
@@ -403,6 +403,7 @@
 {
 	gint width = gtk_adjustment_get_value (stickynotes->w_prefs_width);
 	gint height = gtk_adjustment_get_value (stickynotes->w_prefs_height);
+        gint opacity = gtk_adjustment_get_value (stickynotes->w_prefs_opacity);
 	gboolean sys_color = gtk_toggle_button_get_active (
 			GTK_TOGGLE_BUTTON (stickynotes->w_prefs_sys_color));
 	gboolean sys_font = gtk_toggle_button_get_active (
@@ -420,6 +421,10 @@
 				GCONF_PATH "/defaults/height", NULL))
 		gconf_client_set_int (stickynotes->gconf,
 				GCONF_PATH "/defaults/height", height, NULL);
+        if (gconf_client_key_is_writable (stickynotes->gconf,
+                                GCONF_PATH "/defaults/opacity", NULL))
+                gconf_client_set_int (stickynotes->gconf,
+                                GCONF_PATH "/defaults/opacity", opacity, NULL);
 	if (gconf_client_key_is_writable (stickynotes->gconf,
 				GCONF_PATH "/settings/use_system_color", NULL))
 		gconf_client_set_bool (stickynotes->gconf,
