svnno****@sourc*****
svnno****@sourc*****
Wed Oct 3 10:49:04 JST 2007
Revision: 3246 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=kazehakase&view=rev&rev=3246 Author: ikezoe Date: 2007-10-03 10:49:04 +0900 (Wed, 03 Oct 2007) Log Message: ----------- cleaning. Modified Paths: -------------- kazehakase/trunk/src/kz-tab-label.c Modified: kazehakase/trunk/src/kz-tab-label.c =================================================================== --- kazehakase/trunk/src/kz-tab-label.c 2007-10-03 01:41:15 UTC (rev 3245) +++ kazehakase/trunk/src/kz-tab-label.c 2007-10-03 01:49:04 UTC (rev 3246) @@ -122,10 +122,10 @@ static GtkTargetEntry url_drag_types [] = { - { "_NETSCAPE_URL", 0, TARGET_NETSCAPE_URL}, - { "text/uri-list", 0, TARGET_TEXT_URI_LIST}, - { "text/plain", 0, TARGET_TEXT_PLAIN}, - { "STRING", 0, TARGET_STRING} + { "_NETSCAPE_URL", GTK_TARGET_OTHER_APP, TARGET_NETSCAPE_URL}, + { "text/uri-list", GTK_TARGET_OTHER_APP, TARGET_TEXT_URI_LIST}, + { "text/plain", GTK_TARGET_OTHER_APP, TARGET_TEXT_PLAIN}, + { "STRING", GTK_TARGET_OTHER_APP, TARGET_STRING} }; static guint n_url_drag_types = G_N_ELEMENTS (url_drag_types); @@ -153,9 +153,9 @@ widget_class->button_press_event = button_press; widget_class->button_release_event = button_release; widget_class->scroll_event = scroll_event; -#if 1 + widget_class->drag_data_received = drag_data_received; -#endif + g_object_class_install_property (gobject_class, PROP_KZ_WINDOW, @@ -266,14 +266,12 @@ FALSE, FALSE, 0); gtk_widget_show (kztab->close_button); -#if 1 + gtk_drag_dest_set(GTK_WIDGET(kztab), - GTK_DEST_DEFAULT_HIGHLIGHT | - GTK_DEST_DEFAULT_MOTION | - GTK_DEST_DEFAULT_DROP, + GTK_DEST_DEFAULT_ALL, url_drag_types,n_url_drag_types, GDK_ACTION_MOVE); -#endif + g_signal_connect(KZ_GET_GLOBAL_PROFILE, "changed::Tab", G_CALLBACK(cb_profile_changed), kztab); kz_tab_label_sync_to_profile(kztab);