Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 21 Sep 2017, 17:11
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
GTKdialog: How to add dragndrop to an button icon
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [3 Posts]  
Author Message
stemsee

Joined: 27 Jun 2013
Posts: 1976
Location: In The Way

PostPosted: Sun 30 Apr 2017, 04:40    Post subject:  GTKdialog: How to add dragndrop to an button icon  

I have a gtkdialog widget consisting of a grid of icon buttons. I want one of those to accept dragndrop data; only need to get the data paths dropped there and specify the action.

here is the button
Code:
   <button>
         <input file>/root/noob/files/128/mplayer.png</input>
         <action>exec /root/noob/files/refdnd &</action>
   </button>
xscreenshot-20170430T094100.png
 Description   refdnd
 Filesize   249.49 KB
 Viewed   197 Time(s)

xscreenshot-20170430T094100.png

Back to top
View user's profile Send private message MSN Messenger 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1348
Location: Japan

PostPosted: Sat 09 Sep 2017, 05:35    Post subject:  

Not possible with button widgets.
You could however create a "fake button", an entry widget with an image background. Could be made clickable and could be dropped onto.
Back to top
View user's profile Send private message 
stemsee

Joined: 27 Jun 2013
Posts: 1976
Location: In The Way

PostPosted: Sun 10 Sep 2017, 14:26    Post subject:  

Thanks MochiMoppel, I will try it.
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 1 of 1 [3 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0289s ][ Queries: 12 (0.0065s) ][ GZIP on ]