svnno****@sourc*****
svnno****@sourc*****
Wed Oct 24 08:08:19 JST 2007
Revision: 3311 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3311 Author: ikezoe Date: 2007-10-24 08:08:18 +0900 (Wed, 24 Oct 2007) Log Message: ----------- 2007-10-24 Hiroyuki Ikezoe <poinc****@ikezo*****> * module/embed/ie/kz-ie.c: Add set_lock and get_lock. Modified Paths: -------------- kazehakase/trunk/ChangeLog kazehakase/trunk/module/embed/ie/kz-ie.c Modified: kazehakase/trunk/ChangeLog =================================================================== --- kazehakase/trunk/ChangeLog 2007-10-23 11:02:11 UTC (rev 3310) +++ kazehakase/trunk/ChangeLog 2007-10-23 23:08:18 UTC (rev 3311) @@ -1,3 +1,7 @@ +2007-10-24 Hiroyuki Ikezoe <poinc****@ikezo*****> + + * module/embed/ie/kz-ie.c: Add set_lock and get_lock. + 2007-10-23 Hiroyuki Ikezoe <poinc****@ikezo*****> * src/Makefile.am: Build kazehakase.def if only on Windows. Modified: kazehakase/trunk/module/embed/ie/kz-ie.c =================================================================== --- kazehakase/trunk/module/embed/ie/kz-ie.c 2007-10-23 11:02:11 UTC (rev 3310) +++ kazehakase/trunk/module/embed/ie/kz-ie.c 2007-10-23 23:08:18 UTC (rev 3311) @@ -17,7 +17,6 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * - * $Id: kz-gtk-webcore.cpp 3111 2007-03-30 08:18:40Z makeinu $ */ #include <glib/gi18n.h> @@ -40,6 +39,7 @@ glong max_progress; gchar *location; gchar *title; + gboolean lock; }; #define KZ_IE_GET_PRIVATE(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), KZ_TYPE_IE, KzIEPrivate)) @@ -114,6 +114,9 @@ static gboolean kz_ie_find (KzEmbed *kzembed, const char *keyword, gboolean backward); +static gboolean kz_ie_get_lock (KzEmbed *kzembed); +static void kz_ie_set_lock (KzEmbed *kzembed, + gboolean lock); /* KzEmbedPrefs interfaces */ /* no functions is implemented yet */ @@ -245,8 +248,8 @@ iface->go_history_index = NULL; iface->do_command = NULL; iface->can_do_command = NULL; - iface->get_lock = NULL; - iface->set_lock = NULL; + iface->get_lock = kz_ie_get_lock; + iface->set_lock = kz_ie_set_lock; iface->get_body_text = NULL; #if 0 iface->get_selection_source = NULL; @@ -323,6 +326,8 @@ priv->current_progress = 0; priv->max_progress =0; + + priv->lock = FALSE; } static void @@ -773,3 +778,20 @@ return gtk_ie_embed_find_string(GTK_IE_EMBED(kzembed), keyword, !backward, FALSE); } +static gboolean +kz_ie_get_lock (KzEmbed *kzembed) +{ + g_return_val_if_fail(KZ_IS_IE(kzembed), FALSE); + KzIEPrivate *priv = KZ_IE_GET_PRIVATE (kzembed); + return priv->lock; +} + + +static void +kz_ie_set_lock (KzEmbed *kzembed, gboolean lock) +{ + g_return_if_fail(KZ_IS_IE(kzembed)); + KzIEPrivate *priv = KZ_IE_GET_PRIVATE (kzembed); + priv->lock = lock; +} +