epiphany r8833 - in trunk: doc/reference/tmpl embed embed/webkit src



Author: xan
Date: Sun Mar  1 20:18:06 2009
New Revision: 8833
URL: http://svn.gnome.org/viewvc/epiphany?rev=8833&view=rev

Log:
Remove ephy_embed_has_automatic_encoding, it's unused now.

Modified:
   trunk/doc/reference/tmpl/ephy-embed.sgml
   trunk/embed/ephy-embed.c
   trunk/embed/ephy-embed.h
   trunk/embed/webkit/webkit-embed.c
   trunk/src/ephy-encoding-dialog.c
   trunk/src/epiphany.defs

Modified: trunk/doc/reference/tmpl/ephy-embed.sgml
==============================================================================
--- trunk/doc/reference/tmpl/ephy-embed.sgml	(original)
+++ trunk/doc/reference/tmpl/ephy-embed.sgml	Sun Mar  1 20:18:06 2009
@@ -255,9 +255,6 @@
 @shistory_copy: 
 @get_security_level: 
 @show_page_certificate: 
- get_encoding: 
- has_automatic_encoding: 
- set_encoding: 
 @set_print_preview_mode: 
 @print_preview_n_pages: 
 @print_preview_navigate: 
@@ -373,15 +370,6 @@
 @description: 
 
 
-<!-- ##### FUNCTION ephy_embed_set_encoding ##### -->
-<para>
-
-</para>
-
- embed: 
- encoding: 
-
-
 <!-- ##### FUNCTION ephy_embed_print_preview_n_pages ##### -->
 <para>
 

Modified: trunk/embed/ephy-embed.c
==============================================================================
--- trunk/embed/ephy-embed.c	(original)
+++ trunk/embed/ephy-embed.c	Sun Mar  1 20:18:06 2009
@@ -556,22 +556,6 @@
 }
 
 /**
- * ephy_embed_has_automatic_encoding:
- * @embed: an #EphyEmbed
- *
- * Returns whether the @embed's document encoding was determined by the 
- * document itself.
- *
- * Returns: if the @embed's document encoding was determined by itself
- **/
-gboolean
-ephy_embed_has_automatic_encoding (EphyEmbed *embed)
-{
-	EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
-	return iface->has_automatic_encoding (embed);
-}
-
-/**
  * ephy_embed_set_print_preview_mode:
  * @embed: an #EphyEmbed
  * @preview_mode: Whether the print preview mode is enabled.

Modified: trunk/embed/ephy-embed.h
==============================================================================
--- trunk/embed/ephy-embed.h	(original)
+++ trunk/embed/ephy-embed.h	Sun Mar  1 20:18:06 2009
@@ -190,7 +190,6 @@
 	void		   (* scroll_pixels)		  (EphyEmbed *embed,
 							   int dx,
 							   int dy);
-	gboolean	   (* has_automatic_encoding)	  (EphyEmbed *embed);
 	void		   (* set_print_preview_mode)	  (EphyEmbed *embed,
 							   gboolean mode);
 	int		   (* print_preview_n_pages)	  (EphyEmbed *embed);
@@ -305,7 +304,6 @@
 const char *	 ephy_embed_get_loading_title		(EphyEmbed *embed);
 
 gboolean	 ephy_embed_get_visibility		(EphyEmbed *embed);
-gboolean	 ephy_embed_has_automatic_encoding	(EphyEmbed *embed);
 
 /* Print */
 void		  ephy_embed_set_print_preview_mode	(EphyEmbed *embed,

Modified: trunk/embed/webkit/webkit-embed.c
==============================================================================
--- trunk/embed/webkit/webkit-embed.c	(original)
+++ trunk/embed/webkit/webkit-embed.c	Sun Mar  1 20:18:06 2009
@@ -558,12 +558,6 @@
 }
 
 static gboolean
-impl_has_automatic_encoding (EphyEmbed *embed)
-{
-  return FALSE;
-}
-
-static gboolean
 impl_has_modified_forms (EphyEmbed *embed)
 {
   return FALSE;
@@ -581,7 +575,6 @@
   iface->get_js_status = impl_get_js_status;
   iface->shistory_copy = impl_shistory_copy;
   iface->show_page_certificate = impl_show_page_certificate;
-  iface->has_automatic_encoding = impl_has_automatic_encoding;
   iface->set_print_preview_mode = impl_set_print_preview_mode;
   iface->print_preview_n_pages = impl_print_preview_n_pages;
   iface->print_preview_navigate = impl_print_preview_navigate;

Modified: trunk/src/ephy-encoding-dialog.c
==============================================================================
--- trunk/src/ephy-encoding-dialog.c	(original)
+++ trunk/src/ephy-encoding-dialog.c	Sun Mar  1 20:18:06 2009
@@ -127,8 +127,6 @@
 		g_list_free (rows);
 	}
 
-	is_automatic = ephy_embed_has_automatic_encoding (embed);
-
 	button = ephy_dialog_get_control (EPHY_DIALOG (dialog), properties[AUTOMATIC_PROP].id);
 	gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), is_automatic);
 

Modified: trunk/src/epiphany.defs
==============================================================================
--- trunk/src/epiphany.defs	(original)
+++ trunk/src/epiphany.defs	Sun Mar  1 20:18:06 2009
@@ -1099,12 +1099,6 @@
   (return-type "none")
 )
 
-(define-method has_automatic_encoding
-  (of-object "EphyEmbed")
-  (c-name "ephy_embed_has_automatic_encoding")
-  (return-type "gboolean")
-)
-
 (define-method set_print_preview_mode
   (of-object "EphyEmbed")
   (c-name "ephy_embed_set_print_preview_mode")



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