Revision 437
| src/compose.c (revision 437) | ||
|---|---|---|
| 6269 | 6269 |
{
|
| 6270 | 6270 |
Compose *compose = (Compose *)user_data; |
| 6271 | 6271 |
GList *list, *cur; |
| 6272 |
static GdkDragContext *context_ = NULL; |
|
| 6273 |
static gint x_ = -1, y_ = -1; |
|
| 6274 |
static guint info_ = N_DRAG_TYPES; |
|
| 6275 |
static guint time_ = G_MAXUINT; |
|
| 6272 | 6276 |
|
| 6273 | 6277 |
debug_print("compose_insert_drag_received_cb(): received %s\n",
|
| 6274 | 6278 |
(const gchar *)data->data); |
| 6275 | 6279 |
|
| 6280 |
/* FIXME: somehow drag-data-received signal is emitted twice. |
|
| 6281 |
* This hack prevents duplicated insertion. */ |
|
| 6282 |
if (context_ == drag_context && x_ == x && y_ == y && info_ == info && |
|
| 6283 |
time_ == time) {
|
|
| 6284 |
debug_print("dup event\n");
|
|
| 6285 |
context_ = NULL; |
|
| 6286 |
x_ = y_ = -1; |
|
| 6287 |
info_ = N_DRAG_TYPES; |
|
| 6288 |
time_ = G_MAXUINT; |
|
| 6289 |
return; |
|
| 6290 |
} |
|
| 6291 |
context_ = drag_context; |
|
| 6292 |
x_ = x; |
|
| 6293 |
y_ = y; |
|
| 6294 |
info_ = info; |
|
| 6295 |
time_ = time; |
|
| 6296 |
|
|
| 6276 | 6297 |
list = uri_list_extract_filenames((const gchar *)data->data); |
| 6277 | 6298 |
for (cur = list; cur != NULL; cur = cur->next) |
| 6278 | 6299 |
compose_insert_file(compose, (const gchar *)cur->data, TRUE); |
| ChangeLog.ja (revision 437) | ||
|---|---|---|
| 1 | 1 |
2005-07-19 |
| 2 | 2 |
|
| 3 |
* src/compose.c: compose_insert_drag_received_cb(): ??ʣ???????????? |
|
| 4 |
???ޤ??Τ??ɤ??????? hack ???ɲá? |
|
| 5 |
|
|
| 6 |
2005-07-19 |
|
| 7 |
|
|
| 3 | 8 |
* src/compose.c: compose_get_line_break_pos(): '/' ?θ??Dz??Ԥ??ʤ? |
| 4 | 9 |
?褦?ˤ???(?ե??????ѥ??????ݸ?뤿??)?? |
| 5 | 10 |
|
| ChangeLog (revision 437) | ||
|---|---|---|
| 1 | 1 |
2005-07-19 |
| 2 | 2 |
|
| 3 |
* src/compose.c: compose_insert_drag_received_cb(): added a hack to |
|
| 4 |
prevent duplicated insertion. |
|
| 5 |
|
|
| 6 |
2005-07-19 |
|
| 7 |
|
|
| 3 | 8 |
* src/compose.c: compose_get_line_break_pos(): don't break line after |
| 4 | 9 |
'/' (to protect file path etc.). |
| 5 | 10 |
|
Also available in: Unified diff