[kazehakase-svn] [3258] * src/kz-notebook.c: Handle dropped tab.

Back to archive index

svnno****@sourc***** svnno****@sourc*****
Thu Oct 4 09:47:49 JST 2007


Revision: 3258
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3258
Author:   ikezoe
Date:     2007-10-04 09:47:49 +0900 (Thu, 04 Oct 2007)

Log Message:
-----------
* src/kz-notebook.c: Handle dropped tab.

Modified Paths:
--------------
    kazehakase/trunk/ChangeLog
    kazehakase/trunk/src/kz-notebook.c

Modified: kazehakase/trunk/ChangeLog
===================================================================
--- kazehakase/trunk/ChangeLog	2007-10-04 00:41:45 UTC (rev 3257)
+++ kazehakase/trunk/ChangeLog	2007-10-04 00:47:49 UTC (rev 3258)
@@ -12,6 +12,7 @@
 	dropped URI.
 	* src/bookmarks/kz-bookmark-bar.c: Use kz_notebook_get_dragged_page()
 	for getting URI and title of dropped notebook tab.
+	* src/kz-notebook.c: Handle dropped tab.
 
 2007-10-03  Kouhei Sutou  <kou****@cozmi*****>
 

Modified: kazehakase/trunk/src/kz-notebook.c
===================================================================
--- kazehakase/trunk/src/kz-notebook.c	2007-10-04 00:41:45 UTC (rev 3257)
+++ kazehakase/trunk/src/kz-notebook.c	2007-10-04 00:47:49 UTC (rev 3258)
@@ -304,9 +304,11 @@
 		GtkWidget *src_notebook;
 		GtkWidget **child;
 
+		child = (void*) seldata->data;
 		src_notebook = gtk_drag_get_source_widget(context);
-		child = (void*) seldata->data;
-		gtk_container_remove(GTK_CONTAINER(src_notebook), *child);
+		kz_notebook_move_tab(KZ_NOTEBOOK(src_notebook),
+				     KZ_NOTEBOOK(widget), *child);
+		gtk_drag_finish(context, TRUE, TRUE, time);
 		break;
 	}
 	case TARGET_NETSCAPE_URL:
@@ -320,8 +322,9 @@
 		if (seldata->length < 0) return;
 
 		strings = g_strsplit((const gchar*)seldata->data, "\n", 2);
-                kz_window_open_new_tab(kz, strings[0]);
+		kz_window_open_new_tab(kz, strings[0]);
 		g_strfreev(strings);
+		gtk_drag_finish(context, TRUE, FALSE, time);
 		break;
 	}
 




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