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
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
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
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
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
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
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
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
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.
--