Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
G
geany
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
geany
Commits
8b181f7c
Kaydet (Commit)
8b181f7c
authored
Eyl 11, 2012
tarafından
Colomban Wendling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Don't access GtkSelectionData fields directly
üst
593fef7f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
notebook.c
src/notebook.c
+3
-2
toolbar.c
src/toolbar.c
+2
-2
vte.c
src/vte.c
+3
-2
No files found.
src/notebook.c
Dosyayı görüntüle @
8b181f7c
...
@@ -776,15 +776,16 @@ on_window_drag_data_received(GtkWidget *widget, GdkDragContext *drag_context,
...
@@ -776,15 +776,16 @@ on_window_drag_data_received(GtkWidget *widget, GdkDragContext *drag_context,
guint
event_time
,
gpointer
user_data
)
guint
event_time
,
gpointer
user_data
)
{
{
gboolean
success
=
FALSE
;
gboolean
success
=
FALSE
;
gint
length
=
gtk_selection_data_get_length
(
data
);
if
(
data
->
length
>
0
&&
data
->
format
==
8
)
if
(
length
>
0
&&
gtk_selection_data_get_format
(
data
)
==
8
)
{
{
if
(
drag_context
->
action
==
GDK_ACTION_ASK
)
if
(
drag_context
->
action
==
GDK_ACTION_ASK
)
{
{
drag_context
->
action
=
GDK_ACTION_COPY
;
drag_context
->
action
=
GDK_ACTION_COPY
;
}
}
document_open_file_list
((
const
gchar
*
)
data
->
data
,
data
->
length
);
document_open_file_list
((
const
gchar
*
)
gtk_selection_data_get_data
(
data
),
length
);
success
=
TRUE
;
success
=
TRUE
;
}
}
...
...
src/toolbar.c
Dosyayı görüntüle @
8b181f7c
...
@@ -809,12 +809,12 @@ static void tb_editor_drag_data_rcvd_cb(GtkWidget *widget, GdkDragContext *conte
...
@@ -809,12 +809,12 @@ static void tb_editor_drag_data_rcvd_cb(GtkWidget *widget, GdkDragContext *conte
GtkTreeView
*
tree
=
GTK_TREE_VIEW
(
widget
);
GtkTreeView
*
tree
=
GTK_TREE_VIEW
(
widget
);
gboolean
del
=
FALSE
;
gboolean
del
=
FALSE
;
if
(
data
->
length
>=
0
&&
data
->
format
==
8
)
if
(
gtk_selection_data_get_length
(
data
)
>=
0
&&
gtk_selection_data_get_format
(
data
)
==
8
)
{
{
gboolean
is_sep
;
gboolean
is_sep
;
gchar
*
text
=
NULL
;
gchar
*
text
=
NULL
;
text
=
(
gchar
*
)
data
->
data
;
text
=
(
gchar
*
)
gtk_selection_data_get_data
(
data
)
;
is_sep
=
utils_str_equal
(
text
,
TB_EDITOR_SEPARATOR
);
is_sep
=
utils_str_equal
(
text
,
TB_EDITOR_SEPARATOR
);
/* If the source of the action is equal to the target, we do just re-order and so need
/* If the source of the action is equal to the target, we do just re-order and so need
* to delete the separator to get it moved, not just copied. */
* to delete the separator to get it moved, not just copied. */
...
...
src/vte.c
Dosyayı görüntüle @
8b181f7c
...
@@ -684,9 +684,10 @@ static void vte_drag_data_received(GtkWidget *widget, GdkDragContext *drag_conte
...
@@ -684,9 +684,10 @@ static void vte_drag_data_received(GtkWidget *widget, GdkDragContext *drag_conte
{
{
if
(
info
==
TARGET_TEXT_PLAIN
)
if
(
info
==
TARGET_TEXT_PLAIN
)
{
{
if
(
data
->
format
==
8
&&
data
->
length
>
0
)
if
(
gtk_selection_data_get_format
(
data
)
==
8
&&
gtk_selection_data_get_length
(
data
)
>
0
)
vf
->
vte_terminal_feed_child
(
VTE_TERMINAL
(
widget
),
vf
->
vte_terminal_feed_child
(
VTE_TERMINAL
(
widget
),
(
const
gchar
*
)
data
->
data
,
data
->
length
);
(
const
gchar
*
)
gtk_selection_data_get_data
(
data
),
gtk_selection_data_get_length
(
data
));
}
}
else
else
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment