| 32421:e3c0a56d62a6 | 32422:c215bc5d85e4 |
|---|---|
| 1071 text = text_clipboard; | 1071 text = text_clipboard; |
| 1072 gtk_selection_data_set_text(selection_data, text, strlen(text)); | 1072 gtk_selection_data_set_text(selection_data, text, strlen(text)); |
| 1073 } | 1073 } |
| 1074 if (primary) /* This was allocated here */ | 1074 if (primary) /* This was allocated here */ |
| 1075 g_free(text); | 1075 g_free(text); |
| 1076 } | 1076 } |
| 1077 | 1077 |
| 1078 static void gtk_imhtml_primary_clipboard_clear(GtkClipboard *clipboard, GtkIMHtml *imhtml) | 1078 static void gtk_imhtml_primary_clipboard_clear(GtkClipboard *clipboard, GtkIMHtml *imhtml) |
| 1079 { | 1079 { |
| 1080 GtkTextIter insert; | 1080 GtkTextIter insert; |
| 1081 GtkTextIter selection_bound; | 1081 GtkTextIter selection_bound; |
| 1340 | 1340 |
| 1341 gtk_clipboard_request_contents(clipboard, gdk_atom_intern("text/html", FALSE), | 1341 gtk_clipboard_request_contents(clipboard, gdk_atom_intern("text/html", FALSE), |
| 1342 paste_received_cb, imhtml); | 1342 paste_received_cb, imhtml); |
| 1343 | 1343 |
| 1344 return TRUE; | 1344 return TRUE; |
| 1345 } | 1345 } |
| 1346 | 1346 |
| 1347 return FALSE; | 1347 return FALSE; |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 static void | 1350 static void |
| 1902 } | 1902 } |
| 1903 } | 1903 } |
| 1904 | 1904 |
| 1905 gdk_drag_status (context, suggested_action, time); | 1905 gdk_drag_status (context, suggested_action, time); |
| 1906 | 1906 |
| 1907 /* TRUE return means don't propagate the drag motion to parent | 1907 /* TRUE return means don't propagate the drag motion to parent |
| 1908 * widgets that may also be drop sites. | 1908 * widgets that may also be drop sites. |
| 1909 */ | 1909 */ |
| 1910 return TRUE; | 1910 return TRUE; |
| 1911 } | 1911 } |
| 1912 | 1912 |
| 1913 static void | 1913 static void |
| 1914 gtk_imhtml_link_drop_cb(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time, gpointer user_data) | 1914 gtk_imhtml_link_drop_cb(GtkWidget *widget, GdkDragContext *context, gint x, gint y, guint time, gpointer user_data) |
| 1915 { | 1915 { |
| 1964 return; | 1964 return; |
| 1965 } | 1965 } |
| 1966 | 1966 |
| 1967 i++; | 1967 i++; |
| 1968 } | 1968 } |
| 1969 g_strfreev(links); | 1969 g_strfreev(links); |
| 1970 break; | 1970 break; |
| 1971 case GTK_IMHTML_DRAG_HTML: | 1971 case GTK_IMHTML_DRAG_HTML: |
| 1972 { | 1972 { |
| 1973 char *utf8 = NULL; | 1973 char *utf8 = NULL; |
| 1974 /* Ewww. This is all because mozilla thinks that text/html is 'for internal use only.' | 1974 /* Ewww. This is all because mozilla thinks that text/html is 'for internal use only.' |
| 4258 | 4258 |
| 4259 if (name && !strncmp(name, prefix, len)) | 4259 if (name && !strncmp(name, prefix, len)) |
| 4260 gtk_text_buffer_remove_tag(imhtml->text_buffer, tag, &iter, e); | 4260 gtk_text_buffer_remove_tag(imhtml->text_buffer, tag, &iter, e); |
| 4261 | 4261 |
| 4262 g_free(name); | 4262 g_free(name); |
| 4263 } | 4263 } |
| 4264 | 4264 |
| 4265 g_slist_free(tags); | 4265 g_slist_free(tags); |
| 4266 } | 4266 } |
| 4267 } | 4267 } |
| 4268 } | 4268 } |
| 5008 gtk_image_set_from_pixbuf(image, copy); | 5008 gtk_image_set_from_pixbuf(image, copy); |
| 5009 g_object_unref(G_OBJECT(copy)); | 5009 g_object_unref(G_OBJECT(copy)); |
| 5010 } | 5010 } |
| 5011 } | 5011 } |
| 5012 } else { | 5012 } else { |
| 5013 imhtml->num_animations++; | 5013 imhtml->num_animations++; |
| 5014 } | 5014 } |
| 5015 g_signal_connect(G_OBJECT(icon), "destroy", G_CALLBACK(animated_smiley_destroy_cb), imhtml); | 5015 g_signal_connect(G_OBJECT(icon), "destroy", G_CALLBACK(animated_smiley_destroy_cb), imhtml); |
| 5016 g_queue_push_tail(imhtml->animations, icon); | 5016 g_queue_push_tail(imhtml->animations, icon); |
| 5017 } | 5017 } |
| 5018 } | 5018 } |