Use g_object_get(CAST_TO_PARENT_TYPE(obj), "x", &x, NULL);
On Tue, Dec 18, 2012 at 4:57 AM, Günther Wutz wrote:
> Hi,
>
> i have read the development stuff about GObject initialization and
> destruction of an Object. But i have currently a problem, which drives
> me crazy.
>
> I have an Class A,
As a somewhat related topic (this thread seems to not be nailed on a very
specific topic yet and this still fits in i think), a changeset+commit API
(in the truer sense; not what was proposed with just saying "all nodes below
this one have changed") would be _very_ welcome for gtkmm, because right
Just FWIW, can we agree on one meaning of "transactional"?
For me, the fact that the model shouldn't have to know about the number of
views showing it has nothing to do with transactionality:
> there may be multiple views on the model, and when changing the model, one
> should not be required to k
As a somewhat related topic (this thread seems to not be nailed on a very
specific topic yet and this still fits in i think), a changeset+commit API
(in the truer sense; not what was proposed with just saying "all nodes below
this one have changed") would be _very_ welcome for gtkmm, because right
Like this: http://library.gnome.org/devel/gtk/2.10/GtkCalendar.html ?
On 9/13/07, 吴小虎 <[EMAIL PROTECTED]> wrote:
> the gtk+ release seem has not a widget to let user select date or time from
> popup window, just like combo box. i see evolution has such widget, is
> someone already develop such wid
The mechanism i'd implement would be:
- Create something that can serve as a container for other widgets,
and add an interface to it for being a DND-proxy (that's easiest done
in gtkmm really, with C Gtk+, it's of course also doable)
- Use that in the notebook tabs
- Configure it to proxy DND fo
This forces the XOverlay element (in this case xvimagesink?) to
redraw:
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gst-plugins-base-libs-gstxoverlay.html#gst-x-overlay-expose
, although your actual code would be of much interest in order to
help.
-- Milosz
Add -lstdc++ as flag to the compilation (you missed linking to libstdc++).
-- Milosz
2007/11/19, Andres Gonzalez <[EMAIL PROTECTED]>:
>
> folks,
>
> I am sorry to ask such elementary questions about building Gtk
> applications but I am a bit confused and cannot find the answers
> elsewhere. I ge
In favor of g_idle_add and g_timeout_add; Christian mentioned the variants
with the gtk_ prefix not the g_ Glib based ones.
2008/2/17, Chris MacGregor <[EMAIL PROTECTED]>:
>
> On 02/17/2008 08:31 AM, Christian Bünnig wrote:
> > Btw.. gtk_timeout_add() and gtk_idle_add() has been deprecated.
> >
>
Fonts are now being handled by Pango and drawing can happen either directly
through Cairo:
http://library.gnome.org/devel/pango/1.20/pango-Cairo-Rendering.html
or the Style API (note to use the *_paint_* variants, e.g. gtk_paint_layout,
not _draw_layout):
http://library.gnome.org/devel/gtk/stable/
t know the insides that much.
-- Milosz
2008/3/29, Igor Korot <[EMAIL PROTECTED]>:
>
> Hi, Milosz,
>
> 2 questions:
>
> 1. What is the difference between those 2?
>
> 2. Is there a way to discover if the font is a "TrueType"?
>
>
>
> Thank y
IIRC Pixbufs used not to be GObjects some way back.
2008/3/30, Moises <[EMAIL PROTECTED]>:
>
> Sorry for last email
>
> I put g_type_init(); before I call
> "gdk_pixbuf_new_from_file" and I can read the file,
> but I have a question:
>
> Why I need to call g_type_init() before of call
> gdk_pixbu
gtk_tree_model_iter_n_children(GTK_TREE_MODEL(gtk_combo_box_get_model(combo)),
NULL);
is better, since it uses public API
2008/4/10, Alexander Semenov <[EMAIL PROTECTED]>:
>
> Hi. You can do something like this.
>
> #include
>
> int
> main (int argc, char *argv[])
> {
> GtkWidget *window, *com
I don't believe that using set_parent() will actually place the widget
inside the container; try gtk_container_add(GTK_CONTAINER(grid), widget);
instead
2008/4/29 Tomas Carnecky <[EMAIL PROTECTED]>:
> AlannY wrote:
> > Hi there, my name is Alan and I have some troubles with GtkContainer.
> >
> >
try self.step = 1./len(list)
2008/5/19 Gorshkov <[EMAIL PROTECTED]>:
> Sandra Derbring wrote:
> > Hello,
> >
> > I have a problem with a progressbar. I want, for every file I look into,
> > for the bar to show some progress, so that while you wait for the
> > program to finish, the whole time can
You could try RefDbg: http://refdbg.sourceforge.net/
It's a debugger specifically written for the task of debugging GObject
reference counting.
Am 12. Juni 2008 13:53 schrieb Ratna Kishore <[EMAIL PROTECTED]>:
> Hi,
> Is there any tool avialable to identify the memory leaks in the gtk
> progra
What is probably better is to use gdk_flush() after the execution of
gtk_window_move() or _resize(), and after that make sure that you run the
main event loop with gtk_main_iteration(); you can use a GTimer to determine
the time elapsed. Obviously, and also since this involves the windowing
system
Ooops, obviously i meant
while (g_timer_elapsed(timer) < 0.5)
not "> 0.5"
2008/6/18 Milosz Derezynski <[EMAIL PROTECTED]>:
> What is probably better is to use gdk_flush() after the execution of
> gtk_window_move() or _resize(), and after that make sure that you ru
Yes an UTF-8 string a NULL-terminated ASCII-compatible string. For all
purposes except where you need to read it character-by-character (e.g.
Gtk+/Pango "reading" the string to display it), you can just treat it like a
normal ASCII string.
2008/7/6 LCID Fire <[EMAIL PROTECTED]>:
> I'm currently i
need more space than a gchar is it save to call strlen on that string?
>
> Thanks
>
> Milosz Derezynski wrote:
> > Yes an UTF-8 string a NULL-terminated ASCII-compatible string. For all
> > purposes except where you need to read it character-by-character (e.g.
> > Gtk+
A function is just a piece of code, so if you call a function in T1 from T2,
you still call it in the context of T2; the only thing really helping here
is having a maincontext in T1 and T2, and using a g_idle_add() *on* the
maincontext of T1 (but the code that adds it can be called from T2) so the
I think he meant that in order to use the function with g_signal_connect(),
a C linkage is not needed (and i think this is actually right, too).
2008/7/19 Chris Vine <[EMAIL PROTECTED]>:
> On Sat, 19 Jul 2008 13:42:58 +0200
> Jean Bréfort <[EMAIL PROTECTED]> wrote:
> > Le samedi 19 juillet 2008 à
That does indeed mean it; it's what Emmanuele supposed and it turns out to
be right.
It's rather strange for a gtk+ app to do this, is there some kind of other
non-glib-based main loop running?
2008/7/26 Guido Berhoerster <[EMAIL PROTECTED]>
> * Emmanuele Bassi <[EMAIL PROTECTED]> [2008-07-26 17:
Oh yeah, 1:0 for Occam ;)
2008/7/27 Milosz Derezynski <[EMAIL PROTECTED]>
> That does indeed mean it; it's what Emmanuele supposed and it turns out to
> be right.
> It's rather strange for a gtk+ app to do this, is there some kind of other
> non-glib-based main loop
It works here.
2008/8/6 Felipe Castro <[EMAIL PROTECTED]>
> Hello,
>
> Trying to compile XPad on a Windows 2000 machine I tried to download
> this file with no success:
>
> http://www.zlib.net/zlib123-dll.zip
>
> It seems someone "stole" ZLib's site, so it doesn't work anymore. Does
> anybody her
You could use expose regions and in case the lasso size changes, only redraw
the previous area covered by the lasso (i don't mean the full area btw but
simply the areas covered by the lasso lines, so maybe "lines" would be more
appropriate than "area").
For reference see:
http://library.gnome.org/
Sounds really odd if it's a ComboBoxText. Could you make all of the
code available somewhere?
Cheers,
M.
2008/9/25, William Ramsay <[EMAIL PROTECTED]>:
> Hi all,
>
> I'm doing a list box with 24 text entries - the list represents the hours
> of the day. Oddly enough, I end up with about ten bl
You can use gtk_label_set_markup() and set the internal Layout of the
Label using Pango markup, or use gtk_label_get_layout() (it's safe to
call this function without realizing the widget first); that way
actually have the Label's/a PangoLayout and can modify it as you were
used to. There's also gt
What is the difference between "character formatting" and "layout
formatting" here?
On Thu, Oct 30, 2008 at 5:02 AM, Ian Puleston
<[EMAIL PROTECTED]> wrote:
>> -Original Message-
>> From: Milosz Derezynski [mailto:[EMAIL PROTECTED]
>> Sent: W
I meant "in this context", sorry.
On Thu, Oct 30, 2008 at 5:25 AM, Milosz Derezynski
<[EMAIL PROTECTED]> wrote:
> What is the difference between "character formatting" and "layout
> formatting" here?
>
> On Thu, Oct 30, 2008 at 5:02 AM, Ian Pulesto
Something like you take the coordinates at press, and on subsequent motion
events you take the coordinates again,
with the velocity depending on the position/distance from the original
coordinates. On "unpress" (release) you
stop the scroll.
No?
On Wed, Nov 26, 2008 at 2:22 PM, Demetris Zavorotnic
The symbols must be non-mangled (look up C++ symbol mangling on Google), or,
but this is really only theoretical, you would need to provide the already
mangled symbol names to Builder. However, while theoretically not
impossible, this is highly unpractical (and by highly i mean you really,
really d
You can put multiple VPaneds one into another.
On Sun, Dec 28, 2008 at 7:22 PM, KLEIN Stéphane wrote:
> Hi,
>
> I would like a widget container with two or more panes. The divisions
> between the panes are adjustable by the user by dragging a handle.
>
> To summarize I would like GtkVPaned whose
The problem seems to be that you're using Cairo to render the text but use
Pango to calculate the text extents. This doesn't make a lot of sense to me.
Just use Pango for everything, or just use Cairo for everything (it has
functionality to determine extents of text layouts as well), that should f
CAIRO_ARGB32 is the right colorspace
On Sun, Apr 12, 2009 at 10:12 AM, Dov Grobgeld wrote:
> Regarding the gtk-list subscription, see:
>
> http://mail.gnome.org/mailman/listinfo/gtk-list
>
> for details.
>
> About the strange colors, it is most likely that your pixbuf has an alpha
> channel, whic
You need to get the TreeSelection from the TreeView and connect to
that's "changed" signal, and make sure you connect_after.
Sent from my iPod
On 07.03.2010, at 19:25, smartkenny wrote:
Hi, all
Searched for a long time but didn't find any hints on this. Here's
my layout:
--
= gtk.CellRendererText()
> column.pack_start(renderer, False)
> column.add_attribute(renderer, 'text', 0)
> treeview.append_column(column)
> paned.add1(wrap(treeview))
> textview = gtk.TextView()
> paned.add2(wrap(textview))
> paned.set_position(250)
No, sorry there's really no way to do this. The decoration is (as of yet;
there have been proposals in the past) not handled by Gtk+ but by the WM or
a decorator, and can thus only be enabled or disabled wholesale.
On Mon, Mar 22, 2010 at 8:14 PM, Pioz wrote:
> Hi all,
> is there a way to remov
Well, to be honest, the g_ stuff serves as an abstraction layer; I don't
think that currently there is any problem with using the plain C type
instead of the g_ type in this (or other) functions, but for consistency's
sake and for the case that this typedef will become more complex depending
on oth
Thanks, that was the point I was trying to make!
2010/9/1 richard boaz
> 2010/9/1 David Nečas
>
> On Tue, Aug 31, 2010 at 10:38:13PM +0200, Milosz Derezynski wrote:
>> > Well, to be honest, the g_ stuff serves as an abstraction layer; I don't
>> > think that cur
One option as already said is a modal dialog with progress bar, another
option is to have a progress bar in the main GUI and set the rest of the GUI
insensitive (you _really_ should familiarize yourself with
gtk_widget_set_sensitive() ).
http://library.gnome.org/devel/gtk/unstable/GtkWidget.html#g
otherwise not
> selectable
> button = gtk_button_new_with_label("ADD");
> g_ptr_array_add(dispState[DBNOCONN][DISPSENS][OFF], button);
> g_ptr_array_add(dispState[DBDISPLAY][DISPSENS][OFF], button);
> g_ptr_array_add(dispState[DBEDIT][DISPSENS][ON], button);
>
Hey,
Which theme and engine are you using? Did you try this with different
themes?
Regards
Milosz
On Wed, Sep 21, 2011 at 11:54 PM, Glus Xof wrote:
> Hi guys,
>
> > It seems that the effects for all Gtk+3.0 frames shadow type are the
> > same for almost the GtkShadowType values: GTK_SHADOW_IN,
which is probably unrealisable, is to have something that could be
> incorporated into Gtk itself. (Me, ambitious? Yes, but I have got to have
> *something* to aim at!)
>
>
Ambition is always good but as with all open source, you eventually need to
let this go the open-source-soul-searching
44 matches
Mail list logo