gtkhtml r8703 - trunk/components/html-editor



Author: msuman
Date: Mon Jan 28 05:56:44 2008
New Revision: 8703
URL: http://svn.gnome.org/viewvc/gtkhtml?rev=8703&view=rev

Log:
Patch from Bharath Acharya  <abharath novell com> ** Fix for bug #489456 (Fetch the HTMLVAlignType value from the combo-box d->option_align)

Modified:
   trunk/components/html-editor/ChangeLog
   trunk/components/html-editor/image.c

Modified: trunk/components/html-editor/image.c
==============================================================================
--- trunk/components/html-editor/image.c	(original)
+++ trunk/components/html-editor/image.c	Mon Jan 28 05:56:44 2008
@@ -175,7 +175,7 @@
 changed_align (GtkWidget *w, GtkHTMLEditImageProperties *d)
 {
 	if (!d->disable_change && editor_has_html_object (d->cd, HTML_OBJECT (d->image)))
-		html_image_set_valign (d->image, g_list_index (GTK_MENU_SHELL (w)->children, gtk_menu_get_active (GTK_MENU (w))));
+		html_image_set_valign (d->image, gtk_combo_box_get_active (GTK_COMBO_BOX (d->option_align)));
 }
 
 static void



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]