Re: Adding gtkparasite to gtk?

2012-04-27 Thread Debarshi Ray
Few weeks ago I sat down with Rui and fixed some of the reference counting bugs in gtkparasite: https://www.gitorious.org/gtkparasite There are still some more remaining, especially one where the entries for destroyed widgets are not removed from gtkparasite's treeview. Happy hacking, Debarshi

Re: Adding gtkparasite to gtk?

2012-04-27 Thread Debarshi Ray
On a similar hand: is there a Gtk(3)Parasite yet?? Bastien Nocera ported it to GTK+ 3 last September. Check the commit logs. Happy hacking, Debarshi -- Give a man ssh access, he'll still need a computer. Give him a computer, he'll give ssh access to you. -- Ashish Shukla pgp5dkthvoVLu.pgp

Re: g_get_home_dir (), ${HOME}, and getpwuid ()-pw_dir

2012-09-29 Thread Debarshi Ray
Also to note is that non-GNOME (and even ???non-desktop???) GLib-based applications were seen in the wild. Consider, e. g., the OpenBSD version of the Netcat command-line networking diagnostic tool (as of the version currently in Debian stable [4].) And I'm not

Re: State of gdk-pixbuf

2014-10-26 Thread Debarshi Ray
On Fri, Oct 24, 2014 at 08:06:17PM +0200, Michael Natterer wrote: So this boils down to: graphic-heavy apps like eog or gthumb would go use Gegl Well, we do use it in gnome-photos and I managed to get a non-destructive editing pipeline going with it. But it is slow and gets a release once in N

Re: hooking spinner to GtkSidebar page transition

2014-12-18 Thread Debarshi Ray
On Thu, Dec 18, 2014 at 06:31:11PM +0900, Daiki Ueno wrote: The actual interaction is: 1. a user clicks Punctuation tab for the first time 2. the application starts loading Unicode punctuation characters in a background thread; if it takes long, a placeholder page is shown 3. the

Re: Gtk+4.0

2016-07-01 Thread Debarshi Ray
Hey, On Tue, Jun 21, 2016 at 05:07:46PM +0100, Simon McVittie wrote: > On 21/06/16 15:26, Peter Weber wrote: > > 2. Add experimental features through external libraries (libsexy and so > > on?) > > A series of tiny libraries is not a great way to build a coherent > platform, and each of those

Re: First deprecate APIs and then remove them in the next major version

2017-12-15 Thread Debarshi Ray
On Wed, Dec 13, 2017 at 03:08:46PM -0800, Christian Hergert wrote: > As for GIMP, I think the lesson I take away is that we need to recruit > people to go do the ports for important projects rather than expect them > to track us. Red Hat has shown that this strategy works in both Firefox > and

Re: GnomeDesktopThumbnail API replacement

2018-01-30 Thread Debarshi Ray
On Tue, Jan 30, 2018 at 02:06:01PM +0100, Bastien Nocera wrote: > On Tue, 2018-01-30 at 11:06 +0000, Debarshi Ray wrote: > > Also, it's not primarily about the location of the cache but the > > thumbnailer. To me, the real value in using the generic thumbnailers > > is not

Re: GnomeDesktopThumbnail API replacement

2018-01-29 Thread Debarshi Ray
On Mon, Jan 22, 2018 at 12:46:51PM +, Emmanuele Bassi wrote: > On 22 January 2018 at 09:28, Philip Withnall wrote: > > From the GLib side of things, my thoughts are that this shouldn???t live > > in GLib, since it deals with pixbufs. As long as it integrates with > >

Re: GnomeDesktopThumbnail API replacement

2018-02-04 Thread Debarshi Ray
On Thu, Feb 01, 2018 at 10:33:58PM +0100, Bastien Nocera wrote: > But we could make some internal changes to that API to allow you to > pass associated metadata, maybe, so you could do something like: > - tell the thumbnail API to only consider this private thumbnailer you > have, and no other > -

Re: GnomeDesktopThumbnail API replacement

2018-01-29 Thread Debarshi Ray
Hey, As a heavy user of the thumbnailing APIs, I had promised Bastien to comment on this thread, but I wanted to coherently compile my thoughts before doing that. Some releases ago, I switched GNOME Photos to a custom thumbnailing infrastructure. I have tried to summarise it here:

Re: GnomeDesktopThumbnail API replacement

2018-01-30 Thread Debarshi Ray
Hey, On Tue, Jan 30, 2018 at 10:46:30AM +0100, Bastien Nocera wrote: > On Mon, 2018-01-29 at 15:42 +0000, Debarshi Ray wrote: > > However, the edits are application-specific [2], so it is not > > reasonable to expect the generic OS-wide thumbnailers to be able to

Re: An alternative to gdk-pixbuf

2018-09-07 Thread Debarshi Ray
Hey Magnus, I haven't yet worked my way through the whole thread. It's pretty long and will take me a while longer, but I did want to mention a few things before the weekend draws me away from the computer. On Wed, Sep 05, 2018 at 12:02:45AM +0200, Magnus Bergman wrote: > Over the years it has

Re: An alternative to gdk-pixbuf

2018-09-07 Thread Debarshi Ray
On Wed, Sep 05, 2018 at 08:25:05PM +0200, Magnus Bergman wrote: > Gegl is great for image editing. But not as much for simple viewing. It > doesn't do animation People have been creating and playing videos with it: http://gegl.org/gcut.html > Also it only loads images from the > file system and

Re: An alternative to gdk-pixbuf

2018-09-10 Thread Debarshi Ray
On Sun, Sep 09, 2018 at 02:57:30AM +0200, Magnus Bergman wrote: > Many fields of science deal with images of multi > gigabyte sizes. Ideally any image viewer should be able to handle these > too with the right plugin (probably using GEGL in that case). But I > think the problem with large images

Re: An alternative to gdk-pixbuf

2018-09-10 Thread Debarshi Ray
On Mon, Sep 10, 2018 at 09:40:13AM +0100, jcup...@gmail.com wrote: > I make a gtk viewer that can display large images efficiently (over > 100,000 x 100,000), linked above. I hit a few other issues: > > 1. You can't use a large ScrolledWindow and only paint the visible > area, since you can

Re: Showing GtkButton in table view

2009-12-22 Thread Debarshi Ray
Is there a way to show a standard GtkButton in a table view. I can find examples for toggle buttons but  I want a standard button in each row. Try writting your own GtkCellRenderer. Cheers, Debarshi -- One reason that life is complex is that it has a real part and an imaginary part. --

Re: threading choices

2010-03-02 Thread Debarshi Ray
 If your programming language uses exceptions, remember that leave() call should be inside try..finally cleanup, else this will cause deadlocks if an exception is thrown in-between. If you take C++ as an instance of a programming language with exceptions, then Glibmm offers Glib::Dispatcher

Hover decorations in GtkIconView

2010-03-26 Thread Debarshi Ray
I have a custom GtkCellRendererPixbuf which I am using to render some thumbnails in a GtkIconView. Now when the mouse passes over a rendered thumbnail I want to slightly highlight/decorate it. As far as I can understand from the documentation my render_vfunc should get GTK_CELL_RENDERER_PRELIT in

Re: Hover decorations in GtkIconView

2010-03-26 Thread Debarshi Ray
I don't think items in icon view can be in prelit state. They are either selected or not. You'll probably need to create custom icon view widget to get on-hover effect. Can this be accomplished with a custom GtkIconView or do I need to write it from scratch? Thanks, Debarshi -- One reason

Re: Timed Display of a Dialog

2010-04-15 Thread Debarshi Ray
Is it possible to display a dialog for a timed interval (a few seconds) and have it auto-self-destruct?  If so, please describe the method(s) of such. You can hide the dialog in a signal handler register using the g_timeout_* API. Happy hacking, Debarshi -- Nearly all men can stand

Re: GTK newbie help on G_CALLBACK

2012-05-07 Thread Debarshi Ray
button = gtk_button_new_with_label (B1); /* When the button is clicked, we call the callback function * with a pointer to button 1 as its argument */ g_signal_connect (button, clicked, G_CALLBACK (callback), (gpointer) B1); Should be ... G_CALLBACK

Re: GTK newbie help on G_CALLBACK

2012-05-07 Thread Debarshi Ray
On Mon, May 07, 2012 at 09:06:05AM +, Debarshi Ray wrote: button = gtk_button_new_with_label (B1); /* When the button is clicked, we call the callback function * with a pointer to button 1 as its argument */ g_signal_connect (button, clicked

Re: Own Actionable widget

2016-06-09 Thread Debarshi Ray
Hey, On Tue, Jun 07, 2016 at 08:39:33AM +0200, Ondrej Tuma wrote: > i try to create my own Actionable widget, but I can't found, how can i > call the action. When i see source code of other Actionable widgets, i > found ActionHelper object, which is not documented. GtkActionHelper is a private

Re: Accessors vs Properties

2017-01-05 Thread Debarshi Ray
On Tue, Jan 03, 2017 at 10:46:13PM +0100, Tobias Knopp wrote: > - Is any accessor backuped with a property and vice versa? Nicola already answered this. > - Which one is to prefer? It depends. For simple setting and getting of values from C, I prefer the accessors because (a) it lets the