[Kazehakase-cvs] kazehakase-svn [2955] * src/kz-embed.[ch]: kz_embed_new() drops the second argument as URL.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Mar 22 15:22:12 JST 2007


Revision: 2955
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=2955
Author:   ikezoe
Date:     2007-03-22 15:22:12 +0900 (Thu, 22 Mar 2007)

Log Message:
-----------
* src/kz-embed.[ch]: kz_embed_new() drops the second argument as URL.
* src/kz-window.c: Follow the above change.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-embed.c
    kazehakase/trunk/src/kz-embed.h
    kazehakase/trunk/src/kz-window.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-03-22 06:05:49 UTC (rev 2954)
+++ kazehakase/trunk/ChangeLog	2007-03-22 06:22:12 UTC (rev 2955)
@@ -1,3 +1,8 @@
+2007-03-22  Hiroyuki Ikezoe  <poinc****@ikezo*****>
+
+	* src/kz-embed.[ch]: kz_embed_new() drops the second argument as URL.
+	* src/kz-window.c: Follow the above change.
+
 2007-03-22  Kouhei Sutou  <kou****@cozmi*****>
 
 	* src/kz-module.c (kz_module_load_module, kz_module_exit): added a

Modified: kazehakase/trunk/src/kz-embed.c
===================================================================
--- kazehakase/trunk/src/kz-embed.c	2007-03-22 06:05:49 UTC (rev 2954)
+++ kazehakase/trunk/src/kz-embed.c	2007-03-22 06:22:12 UTC (rev 2955)
@@ -72,7 +72,7 @@
 }
 
 GtkWidget *
-kz_embed_new (const gchar *name, const gchar *url)
+kz_embed_new (const gchar *name)
 {
 	if (!kz_module_load_module(&embeds, _kz_embed_module_dir(), name))
 		return NULL;

Modified: kazehakase/trunk/src/kz-embed.h
===================================================================
--- kazehakase/trunk/src/kz-embed.h	2007-03-22 06:05:49 UTC (rev 2954)
+++ kazehakase/trunk/src/kz-embed.h	2007-03-22 06:22:12 UTC (rev 2955)
@@ -299,8 +299,7 @@
 void            kz_embed_unload			(void);
 void            kz_embed_exit			(void);
 
-GtkWidget      *kz_embed_new			(const gchar   *name,
-						 const gchar   *url);
+GtkWidget      *kz_embed_new			(const gchar   *name);
 void		kz_embed_load_url		(KzEmbed       *kzembed,
 						 const gchar   *url);
 void		kz_embed_view_source		(KzEmbed       *kzembed,

Modified: kazehakase/trunk/src/kz-window.c
===================================================================
--- kazehakase/trunk/src/kz-window.c	2007-03-22 06:05:49 UTC (rev 2954)
+++ kazehakase/trunk/src/kz-window.c	2007-03-22 06:22:12 UTC (rev 2955)
@@ -130,8 +130,7 @@
 static void     kz_window_remove_tab     (KzWindow      *kz,
 					  GtkWidget     *widget);
 
-static KzEmbed *kz_window_create_embed   (KzWindow      *kz,
-					  const gchar   *url);
+static KzEmbed *kz_window_create_embed   (KzWindow      *kz);
 
 static void     kz_window_set_cur_embed_callbacks  (KzWindow   *kz,
 						    KzEmbed    *kzembed);
@@ -797,7 +796,7 @@
 
 /* It's temporary implementation */
 static KzEmbed *
-kz_window_create_embed (KzWindow *kz, const gchar *url)
+kz_window_create_embed (KzWindow *kz)
 {
 	gchar *engine;
 	KzEmbed *kz_embed;
@@ -809,17 +808,17 @@
 	{
 		if (!strcmp(engine, "gtk+-webcore"))
 		{
-			kz_embed = KZ_EMBED(kz_embed_new("khtml", url));
+			kz_embed = KZ_EMBED(kz_embed_new("khtml"));
 		}
 		else
 		{
-			kz_embed = KZ_EMBED(kz_embed_new("gecko", url));
+			kz_embed = KZ_EMBED(kz_embed_new("gecko"));
 		}
 		g_free(engine);
 	}
 	else
 	{
-		kz_embed = KZ_EMBED(kz_embed_new("gecko", url));
+		kz_embed = KZ_EMBED(kz_embed_new("gecko"));
 	}
 
 	return kz_embed;
@@ -839,7 +838,7 @@
 	if (url) g_return_val_if_fail(g_utf8_validate(url, strlen(url), NULL), NULL);
 
 	priv = KZ_WINDOW_GET_PRIVATE(kz);
-	kzembed = kz_window_create_embed(kz, url);
+	kzembed = kz_window_create_embed(kz);
 	kztab = KZ_TAB_LABEL(kz_tab_label_new(kz, kzembed));
 
 	gtk_widget_show_all(GTK_WIDGET(kzembed));
@@ -900,7 +899,7 @@
 		KzTabLabel *kztab;
 		GNode *node;
 		KzBookmark *child;
-		kzembed = kz_window_create_embed(kz, NULL);
+		kzembed = kz_window_create_embed(kz);
 		kztab = KZ_TAB_LABEL(kz_tab_label_new(kz, kzembed));
 		child = KZ_BOOKMARK(tabnode->data);
 





More information about the Kazehakase-cvs mailing list
Back to archive index