done");
ev.consume();});
stage.setScene(new Scene(button, 200, 200));
stage.show();
}
public static void main(String[] args) {
launch();
}
}
-Pankaj
From: Emmanuele Bassi [mailto:eba...@gmail.com]
Sent: Monday, April 15, 2019 5:26 PM
To: Pankaj Bansal
On Mon, 15 Apr 2019 at 12:45, Pankaj Bansal via gtk-app-devel-list <
gtk-app-devel-list@gnome.org> wrote:
> I am working with OpenJDK JavaFX dev group and we are facing some problems
> with drag and drop functionality with gtk3.20 or later. You can have a look
> at the bug for m
Hi All,
I am working with OpenJDK JavaFX dev group and we are facing some problems with
drag and drop functionality with gtk3.20 or later. You can have a look at the
bug for more information https://bugs.openjdk.java.net/browse/JDK-8211302. It
will be great if someone can point out any big
my application, which has drag-and-drop
> enabled to allow re-ordering of the rows. To support tree model updates
> while the user is performing dnd operations, I also have
> GtkTreeRowReferences for each row in the model (the model will not have too
> many rows).
>
> However, when I mo
I've implemented a treeview in my application, which has drag-and-drop
enabled to allow re-ordering of the rows. To support tree model updates
while the user is performing dnd operations, I also have
GtkTreeRowReferences for each row in the model (the model will not have too
many rows).
However
Hi All,
I am using a GTkTreeView with automatic DND enabled and I wonder if
there is a simple way to prevent/suppress
that a toplevel item can be dragged to a child position of another
toplevel item.
What I did so far was catch the "row-inserted" signal, check if the item
has moved to a
When implementing drag and drop in Python and GTK3 the default
behaviour is that if I drag something towards the drop area, then the
drop area obtains a rectangular black frame. How to remove this
effect?
As per gtk3 docs, there is a style class GTK-STYLE-CLASS-DND 'dnd', so
I would think
lementing drag and drop in Python and GTK3 the default
> behaviour is that if I drag something towards the drop area, then the
> drop area obtains a rectangular black frame. How to remove this
> effect?
>
> As per gtk3 docs, there is a style class GTK-STYLE-CLASS-DND 'dnd', so
>
2015-10-19 14:06 GMT+01:00 Marco Scannadinari :
> border-width=0px;
>
> This should be a colon not an equals sign
> style_provider.load_from_data(bytes(css.encode()))
>
> .encode already returns a bytes object in Python 3, what version are you
> using?
Sorry, in
the branches by drag and
drop. It is seamless.
But I need make a test of the destination type when the element is
dropped, and abort the drag and drop action, if destinaton element is
not a type "GROUP". How to achieve this?
The ideal would be if carried out evaluated targets befor
To gtk team,
I´m developing an app with drag and drop operation between 2 treeviews and I
have had some problems with dnd mechanism.
I do a G_VALUE_ARRAY to hold the following selected datas. I was fulfill in
signal ON_DRAG_GET.
Tabela is my gvaluearray and datas I wanna hold are, number
On Sat, 13 Oct 2012 14:08:34 +0900
Tristan Van Berkom t...@gnome.org wrote:
Hopefully for you... your work is high-level enough and your drag
source is in the
same application as your drop target... that means you get to set some pointer
data and work completely around the drag-and-drop
Hello guys,
I've got DnD actually working, between a GtkTreeView and a GtkLayout. I'm using
it
to make a scheduler, where the TreeView has the classes to be scheduled, and the
Layout is the actual grid.
Though this works, I can't draw the correct size of the class period in the
layout till I
during the
drag-motion
events in order to animate a space between rows properly.
Hopefully for you... your work is high-level enough and your drag
source is in the
same application as your drop target... that means you get to set some pointer
data and work completely around the drag-and-drop
I am trying to use drag-motion signal to add support for some additional
drop format testing (using tree view for drop target).
But I noticed the following thing: it appears that drag-motion is not
fired at all when dragging the data from the external source!?
Note that drag-drop handler
Hi,
I have a question about drag and drop handling.
Currently, I've add this code to handle drag and drop :
gtk_drag_dest_set(emuwin, GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY);
gtk_drag_dest_add_text_targets(emuwin);
g_signal_connect(emuwin, drag-data-received, G_CALLBACK(on_drag_and_drop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 05/17/2011 09:07 AM, Thibault Duponchelle wrote:
Hi,
I have a question about drag and drop handling.
Currently, I've add this code to handle drag and drop :
gtk_drag_dest_set(emuwin, GTK_DEST_DEFAULT_ALL, NULL, 0, GDK_ACTION_COPY
Hi,
Nothing is wrong with your code, except the ugly hack..
You probably need to do something like list
gchar **list;
gint i = 0;
list = g_uri_list_extract_uris((const gchar *)
gtk_selection_data_get_data(selection_data));
if (list) {
while (list[i] != NULL) {
filename =
Very grateful for any pointers.
I have working code - using PyGtk on Linux - all very nice...
but something I am trying to do is not quite right.
Dragging a text block from an app - word or spreadsheet - onto a
DrawingArea.
The dragndrop works -ish.
If I drag a file or some text from e.g.
Hi,
I have been unable to get drag and drop validation working in pygtk. I
am out of ideas and would like a second opinion.
My goal is to only allow files which contain .jpg to be dropped.
Specifically, whenever I call widget.drag_get_data within the
drag-motion callback The X11 cursor locks up
Hi all,
I'm using Gtk-2.22.0 and I have a problem using drag and drop on a GtkTreeView
on Windows.
I'd like to have a drag and drop functionality to move an item in the
GtkTreeView from a top level position to a folder contained in the same
treeView.
My code is the following
Hi list,
I'm having troubles in implementing rather simple but convenient
behaviour: my widget, which is accepting drag-and-drops from other
applications, should receive keyboard focus right after the drops. I'm
trying to achieve this using gtk_widget_grab_focus() inside
'drag-data-received'
(selfp-button), 0, drop_targets,
G_N_ELEMENTS (drop_targets),
GDK_ACTION_COPY | GDK_ACTION_LINK | GDK_ACTION_MOVE);
// Connect to drag and drop signals.
g_signal_connect (GTK_OBJECT(selfp-button), drag-data-received,
G_CALLBACK(self_do_drag_data_received), self
Hi,
I am trying to implement drag and drop. Currently just trying to get the
destination working. I have the basics working, but if I attempt to do
custom drag-motion validation and I call gtk_drag_get_data() the Xserver
locks with a drag cursor. The only way to get out is to Alt-F1 then kill
Hi,
In my app I want the user to drag-n-drop files from nautilus, then the
application should open them. I am using as Targets:
1. STRING
2. text/plain
Then when the drag_data_received() signal is emitted, I use the get_text()
method on the SelectionData to get the text.
Everything works
[mailto:gtk-app-devel-list-boun...@gnome.org] On Behalf Of sledge hammer
Sent: Thursday, April 30, 2009 1:55 PM
To: gtk-app-devel-list@gnome.org
Subject: Problems using/understanding drag-and-drop.
Hi,
In my app I want the user to drag-n-drop files from nautilus, then the
application should open
sledge hammer wrote:
In my app I want the user to drag-n-drop files from nautilus, then the
application should open them. I am using as Targets:
1. STRING
2. text/plain
You probably want to also (or maybe instead) handle text/uri-list.
2. spaces in the filename are represented as %20
I need to drag and drop from my app to the opsys desktop or folder.
This is an email so it is part of a mailbox file. Or it could be some other part
like an attachment of the email.
does mailbox:// protocol automatically handle the drop in opsys?
I find a lot of code using drag and drop
));
gtk_drag_dest_add_uri_targets(GTK_WIDGET(textview1));
I've connected the DnD handlers:
g_signal_connect (G_OBJECT (textview1), drag-drop, G_CALLBACK
(textview_on_drop), NULL);
g_signal_connect (G_OBJECT (textview1), drag-data-received, G_CALLBACK
(drag_data_received_handl), NULL);
Unfortunately, I
When dragging the Firefox contents over Clipboard Spy tool, I notice that
data formats include CF_TEXT and text/html.
OK, so this is on Windows, presumably, as you talk about CF_TEXT? You
should have said so already in the beginning of your message.
Cross-application drag and drop
Is there any sort of
configuration file or environment variable that can be used to reverse the
behavior?
Not as far as I know.
--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
Tor Lillqvist wrote:
Is there any sort of
configuration file or environment variable that can be used to reverse the
behavior?
Not as far as I know.
--tml
Tor,
I have filed a bug as you suggested (573067).
Thanks,
Bob S.
___
Tor Lillqvist wrote:
As a user of Geany, I was surprised to find that when attempting to move
selected text by d'n'd, that the default behavior under WinXP was copy
Presumably you are talking about drag.and-drop inside one application
instance, as drag-and-drop of anything (including text
Hello,
As a user of Geany, I was surprised to find that when attempting to move
selected text by d'n'd, that the default behavior under WinXP was copy
where I had expected it to be move as it is in Linux. When I brought
this up on the Geany list, I was told that this behavior is part of GTK.
Hi everybody,
This is a remake question but is inter application drag and drop (which
works great on linux) suppose to work on win32?
I've found posts form Tor way out in 2006 stating it wasn't even planned
but it's never written out clearly in any GTK docs.
Thanks for help.
Nicolas
This is a remake question but is inter application drag and drop (which
works great on linux) suppose to work on win32?
Nope, it doesn't.
I've found posts form Tor way out in 2006 stating it wasn't even planned
but it's never written out clearly in any GTK docs.
not planned is incorrent
On Wed, 6 Aug 2008 14:36:53 +0200, Norbert Schultz
[EMAIL PROTECTED] wrote:
Hi,
when I enable a Widget to receive Drops using drag_dest_set with
target entries STRING, text/plain, text/html,
application/x-rootwin-drop (just copied them from an example) I can
copy paste text snippets into
Enrico Tröger:
Hi,
[.. Dropping from other clients doesn't work ..]
Try adding text/uri-list to the target entries.
Regards,
Enrico
Ah, merci that works :)
Greetings,
Norbert
___
gtk-app-devel-list mailing list
Hello,
when I enable a Widget to receive Drops using drag_dest_set with target
entries STRING, text/plain, text/html, application/x-rootwin-drop (just
copied them from an example) I can copy paste text snippets into my
widget, from the same Widget and from others and receive them using the
drag and drop completely for the entire gtk
application by setting the gtk-dnd-drag-threshold property to a value
greater than the screen width. This works for me for now.
If we ever need to do drag and drop in this application I will have to
revisit this problem. After reviewing months
I haven't worked with drag and drop all that much.
I have an application in which I'm dragging rows from one tree view onto
another tree view. It's working great except for one piece...
Using the gtk_tree_view_get_dest_row_at_pos () in the drag-motion
signal handler, I am able to get
as that is already going to be freed after the
drag-drop is completed.
Sound right?
- Micah Carrick
Developer - http://www.micahcarrick.com
GTK+ Forums - http://www.gtkforums.com
Micah Carrick wrote:
Let me be more clear...
In my callback for drag-data-get I'm trying to pass on a GArray which
I
On Fri, 16 May 2008 16:12:50 -0400 [EMAIL PROTECTED] wrote:
I'm using mwm and libglade if that makes a difference. Is this
automatic drag and drop something that libglade sets up for me by
chance?
Why would you want to do this? People accustomed to how entry widgets
behave will likely
Hi there.
I need an explanation about how to drag and drop widget. I saw a
tutorial where one man shows how to transfer a text/plain data between a
CList (deprecated)... but I don't imagine how to transfer a whole GTK+
widget.
Should I destroy source widget and create exactly new in new
Hi,
I was just playing around with the GtkStatusIcon API and wondered if
there is any way to use Drag And Drop with a GtkStatusIcon object? The
usual way doesn't work because GtkStatusIcon is a subclass of GObject
and not an ordinary GtkWidget.
Or is not possible at all because of the tray icon
2008/1/15 Enrico Tröger [EMAIL PROTECTED]:
I was just playing around with the GtkStatusIcon API and wondered if
there is any way to use Drag And Drop with a GtkStatusIcon object? The
usual way doesn't work because GtkStatusIcon is a subclass of GObject
and not an ordinary GtkWidget
On Tue, 15 Jan 2008 23:20:28 -0700, Scott Horowitz
[EMAIL PROTECTED] wrote:
2008/1/15 Enrico Tröger [EMAIL PROTECTED]:
I was just playing around with the GtkStatusIcon API and wondered if
there is any way to use Drag And Drop with a GtkStatusIcon object?
The usual way doesn't work because
On Dec 8, 2007 2:55 AM, Mats Vold [EMAIL PROTECTED] wrote:
I'm trying to create a drag and drop destination, and I have the following
code
Have you tried the drag and drop example code that comes with gtk?
Here's a widget from my app that displays a swatch of colour and lets
you drag and drop
I'm trying to create a drag and drop destination, and I have the following code
(excerpt):
gboolean
drag_motion (GtkWidget *widget,
GdkDragContext *context,
gintx,
ginty,
guint time,
gpointer
On Sun, 2007-10-14 at 21:12 +0200, Johannes Schmid wrote:
I am trying drag and drop on an GtkContainer and I want to find out the
nearest child from the drop point. So far I tried to get the child
position using gtk_widget_get_window()
I can't find this function. Do you mean GtkWidget
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi!
and gdk_window_get_position() but
that gives me the save position for all children
I don't understand what you mean by save position.
Sorry, I meant same here - very bad typo.
I happen to know that you are trying to implement drag
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi!
I am trying drag and drop on an GtkContainer and I want to find out the
nearest child from the drop point. So far I tried to get the child
position using gtk_widget_get_window() and gdk_window_get_position() but
that gives me the save position
On Sun, 2007-10-14 at 21:12 +0200, Johannes Schmid wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi!
I am trying drag and drop on an GtkContainer and I want to find out the
nearest child from the drop point. So far I tried to get the child
position using gtk_widget_get_window
I suppose somebody else must have come across this issue -- and if
so I'd be grateful for any ideas.
I have a treeview in which GTK_SELECTION_MULTIPLE is enabled.
And there's a meaning attached to dragging elements from this
treeview to another window.
The design problem is that if the
On Thu, Aug 23, 2007 at 10:29:47AM -0400, Allin Cottrell wrote:
I suppose somebody else must have come across this issue -- and if
so I'd be grateful for any ideas.
I have a treeview in which GTK_SELECTION_MULTIPLE is enabled.
And there's a meaning attached to dragging elements from this
On Thu, 23 Aug 2007, David Ne?as (Yeti) wrote:
On Thu, Aug 23, 2007 at 10:29:47AM -0400, Allin Cottrell wrote:
I suppose somebody else must have come across this issue -- and if
so I'd be grateful for any ideas.
I have a treeview in which GTK_SELECTION_MULTIPLE is enabled.
And
Hi,
I setup a tree view as a drag source accepting both copy and move actions
on button 1. I also set it up as a drop destination accepting both copy
and move actions. When I click button 1 to perform a drag and drop,
I get the move action, ie. drag_data_delete signal is emitted to the source
Chears people,
I would like to implement drag and drop of objects. The destination of
the dropped objects is either a table, either a notebook. My wish would
be to know the row/column index in the destination table or the tab
index/out-of-tab status for the notebook (out of tab status means
Hi,
Is there a way of customizing the width and color of the drag and drop
target marker in a Gtk::TreeView, without writing my own drag and drop
functions? I was looking for a style or property which does this, but I
could not find one.
Ferenc
enable_model_drag_source on one list and enable_model_drag_dest
on the other - the gui behaves as if drag-and-drop will work and then
doesn't actually do it. Fair enough, I wasn't expecting it to be that
easy. So, I hook up to some of the more likely-looking signals and hack
this together
def
and enable_model_drag_dest
on the other - the gui behaves as if drag-and-drop will work and then
doesn't actually do it. Fair enough, I wasn't expecting it to be that
easy. So, I hook up to some of the more likely-looking signals and hack
this together
def on_drag_data_recieved(self,widget
Hi
I have two Treeviews (just lists, they use Liststore) and I want to be
able to drag entries from one into the other. What is the correct way to
do this?
I call enable_model_drag_source on one list and enable_model_drag_dest
on the other - the gui behaves as if drag-and-drop will work
hi
i have gone through whole gtk tutorial.
but i cann't able to find any example of drap and drop.
if anyone send me one i will be highly obliged..
--
Prabhakar
IV Year
B.tech (Computer Science)
I. E. T. Lucknow
___
gtk-app-devel-list mailing list
On Mon, 2006-03-27 at 10:18 +0530, prabhakar kushwaha wrote:
hi
i have gone through whole gtk tutorial.
but i cann't able to find any example of drap and drop.
if anyone send me one i will be highly obliged..
This dates back a couple of years, but the APIs are still very similar:
Hi,
I have problem in detecting the drop in the destination widget (thunar
XFCE file manager). I have set my app like this:
treeview1 = gtk_tree_view_new ();
gtk_widget_set_name (treeview1, treeview1);
gtk_widget_show (treeview1);
gtk_container_add (GTK_CONTAINER (scrolledwindow1),
Tor Lillqvist wrote:
Thomas Gilgin writes:
Is inter-application drag and drop still unsupported for win32?
Yes.
Thanks for the answer, even if it's not my favourite :-)
Does anybody know a good workaround or an app that uses one?
Regards,
Thomas
Is inter-application drag and drop still unsupported for win32?
If yes, are there any plans to implement it?
I'd like to drag files from my app to external apps...
Regards,
Thomas
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
Thomas Gilgin writes:
Is inter-application drag and drop still unsupported for win32?
Yes.
If yes, are there any plans to implement it?
Not really any immediate plans.
--tml
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
I am experience a problem with GTK DND. It is freezing the mouse pointer
when a drag n drop event is fired. Once the mouse is frozen, the whole
display is locked and I cannot use my mouse and keyboard. I have to kill the
application to get hold of the display. This happens whenever I rapidly drag
Hello,
( I speak french, sorry for my english )
in my GtkTreeView, I activated drag and drop with :
gtk_tree_view_set_reorderable(GTK_TREE_VIEW(pTreeView), TRUE);
The DnD works fine, but I would like control if the row may moved.
How can I do it ?
Thank you
Hi!
On Mon, 22 Aug 2005 00:37:34 +0200
Thym [EMAIL PROTECTED] wrote:
Hello,
( I speak french, sorry for my english )
in my GtkTreeView, I activated drag and drop with :
gtk_tree_view_set_reorderable(GTK_TREE_VIEW(pTreeView), TRUE);
The DnD works fine, but I would like control
I asked it on irc, and here is a solution :
g_signal_connect_swapped(G_OBJECT(pMyApp-pTreeStore), row_inserted,
G_CALLBACK(entryMoved), pMyApp);
Thank you.
___
gtk-app-devel-list mailing list
[EMAIL PROTECTED]
Thank you Damon. Yes, indeed, I need to decode the data from URI encoding!
Gaurav
On 8/3/05, Damon Chaplin [EMAIL PROTECTED] wrote:
On Wed, 2005-08-03 at 16:05 +0530, Gaurav Jain wrote:
Hi,
I'm trying to support drag-and-drop functionality in which any file
can be dragged from
I tried looking thru the archives and bugzilla, but
couldnt find this particular problem.
I have a window with multiple edit text boxes, and
when I highlight the text from one box and try to drag
it to another, more often than not the entire X
display locks up, and can only be recovered by killing
74 matches
Mail list logo