documented anywhere, or am i the only person clueless
> enough to try to get to the top left by going to the x,y returned by
> get_allocation, instead of to (0,0)?
This is documented in the draw signal docs [1].
Cheers,
Tadej
[1] https://developer.gnome.org/gtk3/stable/GtkWidget
-objects
> - which returns a list of objects, but I really need the names. Is it
> possible?
Maybe you can call perl equivalent of gtk_buildable_get_name() on each
object in the list, returned by gtk_builder_get_objects()?
Cheers,
Tadej
--
Tadej Borovšak
tadej.borov...@gmail.com
t
lue",
G_BINDING_BIDIRECTIONAL |
G_BINDING_SYNC_CREATE,
rad_to_deg, deg_to_rad,
NULL, NULL);
gtk_widget_show_all (window);
gtk_main ();
return 0;
}
--8<---
Cheers,
Tadej
-
ge formats your library supports by calling
gdk-pixbuf-query-loaders [2] utility.
Cheers,
Tadej
[1] https://developer.gnome.org/gdk-pixbuf/stable/
[2] https://developer.gnome.org/gdk-pixbuf/stable/gdk-pixbuf-query-loaders.html
--
Tadej Borovšak
blog.b
ption, this is the only place where tree
view is used in your app. Maybe file system changes cause tree view to
update itself in a bad way? (I'm mostly guessing here after a quick git
grep through sources.)
Cheers,
Tadej
--
Tadej Borovšak
tadej.b
current theme settings to load proper icon and render it. For icon
names, you can consult gtk-demo application that features icon
browser.
Cheers,
Tadej
[1] http://developer.gnome.org/gtk3/stable/GtkWidget.html#gtk-widget-render-icon
--
Tadej Borovšak
blog.borovsak.si
tadeb...@gmail.com
tadej.boro
,
Tadej
--
Tadej Borovšak
blog.borovsak.si
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
sing gtk-demo.exe app
from latest all-in-one bundle from gtk.org and still no crash. So it
looks like things have been fixed somewhere between 2.20 and 2.24.10?
Cheers,
Tadej
--
Tadej Borovšak
blog.borovsak.si
tadeb...@gmail.com
tadej.borov...@gmail.com
___
ge
>
>
> http://fotos.subefotos.com/607c3fb8e19de4ed18357b85a33b3ab5o.png
This is not something you could do with GTK+, since window decorations
are usually handled by window manager. What window manager (desktop) are
you using? Maybe it can be themed to behave this way?
Cheers,
Tadej
--
Ta
AINER (align), area);
gtk_widget_show_all (window);
gtk_main ();
return 0;
}
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
io.h
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hello.
> 'GStatBuf' is supposed to be typedef'd somewhere to ensure that the correct
> 'stat' struct gets used, depending on the compiler and platform - but I can't
> find GStatBuf anywhere.
"git grep GStatBuf" says GStatBuf is defined in
on how to add the two
> buttons s on the lower left?
I don't have GNOME installed here, but my guess would be that you're
looking at the stock GtkAboutDialog, which is part of the GTK+.
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.b
to 4 bytes: 0xF0 0x90 0x80 0x85)
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
le. Do you install this file for your app?
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
r,
> render_float,
> GINT_TO_POINTER(i),
> NULL);
IIRC, gtk_tree_view_insert_column_with_attributes() returns number of
columns and gtk_tree_view_get_column() expects to get column number
where first column is 0. So you may be off
Hi.
> using IconView select_path(...), how can I make it look like it was selected
> by clicking on it, i.e. not in that "inactive" grey color? [1]
Did you try using this:
http://developer.gnome.org/gtk/stable/GtkIconView.html#gtk-icon-view-set-cursor
Cheers,
Tadej
--
Recent versions produce
GtkAdjustment's properties in proper order.
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listi
ngle
value 0.
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hi.
> Incidentally (sorry for the dumb questions but my background is mostly with
> MFC) - is it possible to set a GTK+ window to be "always on top"?
See gtk_window_set_transient_for() function. I think it'll do what you
need to be done.
Cheers,
Tadej
--
Tadej Borovšak
exactly right. I would only add that you decrease reference
count right after attaching it to context (like Colomban already
suggested). This way memory used by source will be freed when detached
from context.
All that being said, maybe you could "cook up" a patch for API docs
with
Hi.
> I'm repetitively calling g_idle_source_new(), g_source_set_callback(),
> g_source_attach() to get an idle callback to run in a separate thread. The
> callback in question always exits with FALSE.
Do you call g_source_unref() after attaching it?
Cheers, Tadej.
--
t important sources for info isn't accessible to
> google it seems. (to be fair, bing.com doesn't find it either)
I usually use Google's Code Search (http://www.google.com/codesearch)
when hunting for example code.
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
ta
have a section named "Object Hierarchy" that lists relationships
of objects).
I would suggest that you install Devhelp and -doc packages of
GTK/GLib/Cairo to make your life a bit easier.
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tade
*data)
{
/* La la la */
}
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
it rather
> than redraw it every time the map and app data change?
I would suggest that you use cairo to do all of the drawing. Then you
can "store" your drawings onto cairo surface and paint it when needed.
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmai
why don't you
simply execute "/usr/bin/lilypond --output=scale.png -" and then feed
the lilyponds stdin through obtained file descriptor that g_spawn...()
gives you?
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
__
ll correct me):
gtk_button_new_with_label(): button->label
gtk_button_new_from_stock(): button->hbox->label
`>image
Exact widget tree doesn't really matter, since it's relatively easy to
create code that recursively checks for GtkLabel.
Hope thi
Hello.
I think gdk_color_parse() function is what you're looking for. But be
aware that this function will return 16-bit RGB components (not the
usual 8-bit ones).
Cheers,
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmai
ome.org/devel/gtk/stable/GtkBuilder.html#GtkBuilder.description
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
remove_me;
path = gtk_tree_row_reference_get_path (ref);
gtk_tree_model_get_iter (GTK_TREE_MODEL (store), &remove_me, path);
gtk_tree_path_free (path);
gtk_list_store_remove (store, &remove_me);
gtk_tree_row_reference_free (ref);
}
g_list_free (elements);
-
Tadej
-
gpointer source_combo_box)
Tadej
[1] http://library.gnome.org/devel/gtk/stable/GtkButton.html#GtkButton-clicked
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gno
Hi.
> What is [1] you mentioned ?
Heh, I forgot to paste a link;)
[1]
http://library.gnome.org/devel/gobject/stable/gobject-Signals.html#GSignalFlags
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.
st" will run default signal handler after user
provided signal handlers. "Action" signals can be freely emitted from
your code and most of them have a wrapper function (for example,
gtk_button_clicked (button) is equivalent to g_signal_emit_by_name
(button, "clicked")).
Ta
Hi.
Are you using threads in your application? Problems like this usually
arise when you don't initialize GLib/GDK thread subsystems.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel
back in lock/unlock:
gdk_threads_add_idle().
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
ns back to main loop,
which tries to lock mutex and here you have your lock.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mail
Hi
Window decorations are currently managed by window manager. There is a
branch of GTK+ where decorations would be managed by application
itself (this is called client-side decorations).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
Hi.
You need to unref your pixbuf only after it has been rendererd to
cairo context, since GList will not take ownership of it. Call
_unref() just after cairo_paint() call and you should be fine.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
ometry() which
return the position of a window relative to its parent window.)
---
Did you test it and it gave some strange results?
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailin
obtain the geometry of the window, since
_get_frame_extents() may include window manager decorations if they
are present.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
get the layout of monitors by inspecting their geometry (x and
y coordinates).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/
_get_selected (data->sel, &model, ¤t))
return;
next = current;
if (gtk_tree_model_iter_next (&next))
{
/* Now current "points" to currently selected row and prev to row before.
* Do number switch here now. */
}
}
Hopefully this will help you a bi
Hello.
I usually encapsulate my code into custom widgets when:
- I need my widget in lots of places
- I need my construct to emit signals
As long as code is small and relatively clean, I simply use
GtkDrawingArea and draw onto it from ::expose-event handler.
Tadej
--
Tadej Borovšak
e" property.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Hello.
You'll probably need to connect to GtkWidget::key-press-event signal
and initiate editing from there using
gtk_tree_view_set_cursor_on_cell() function.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmai
l be able to
find it.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
per widget that will
"underallocate" your text view and place that into a table. Second
solution is probably easier to implement, but first one is more
flexible.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
__
stop signal from being emitted when modifying
action directly. You'll need to block signal handlers that are
connected to this signal in order to avoid calling them. You may find
g_signal_handlers_block* family of functions useful here.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...
Hello.
> How can i impose GdkDrawingArea on the GtkImage for painting on image
> for example?
Why don't you simply draw your image onto drawing area too? No need
for layered widgets here.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov..
when defining GtkActions.
BTW, can you provide a link to one of the outdated files?
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnom
LL);
spinner = gtk_spin_button_new_with_range(1, 4, 1);
gtk_spin_button_set_numeric(GTK_SPIN_BUTTON(spinner), FALSE);
g_signal_connect(G_OBJECT(spinner), "input",
G_CALLBACK(alpha_input), NULL);
g_signal_connect(G_OBJECT(spinner), "output",
G
char* file_path);
>
> void main_win_show_error( MainWin* mw, const char* message);
>
> void main_win_close( MainWin* mw );
>
> GType main_win_get_type(void);
>
> void on_open( GtkWidget* btn, MainWin* mw );
You still haven't answered how yout type is
hat you're creating custom
widget, derived from GtkWindow. If this is true, then you're having
troubles because type of your widget is probably not properly
registered using GType. Are you using all of the standard boilerplate
code for GObject?
Tadej
--
Tadej Borovšak
tadeboro.
Part
1[1], Part 2[2].
Tadej
[1] http://mail.gnome.org/archives/gtk-list/2010-May/msg00135.html
[2] http://mail.gnome.org/archives/gtk-list/2010-June/msg00012.html
--
Tadej Borovšak
00386 (0)40 613 131
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
Hello.
> I'm trying to translate co-ordinates from local widget space into screen
> space and back again. Is that possible with GTK?
gdk_window_get_root_coords() or gdk_window_get_origin() will be of
interest in this situation.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb..
t carry any information about who
constructed them). You'll need to pass your builder object around
manually (g_object_set_data() would be one option, global variable
second, struct that is passed to all of the functions would be third,
...).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
Hi.
> How can I control the aspect ratio of a child which is a
> GtkDrawingArea? I've tried
Use GtkAspectFrame as parent of drawing area.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gt
't support 1-Bit pixels (at least
> that's what I understand from my reading of the docs).
> Any suggestions?
cairo_image_surface_t can have a depth of one bit (CAIRO_FORMAT_A1)
and offers direct access to pixel values.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
orry for the self-promotion).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
I have looked at
> gtk_widget_set_parent_window () but couldn't get it to work.
Have a look at gtk_window_set_modal() and
gtk_window_set_transient_for() functions.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
_
scrolling ability and should be added to
GtkScrolledWindow directly using gtk_container_add() (no viewport
should be added between the two).
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list
child; in
any other situation (if the image has been set alongside label for
example) gtk_bin_get_child() will return container that holds various
pieces together.
My advice to you would be to create label manually and then simply
pack it into empty GtkButton using gtk_container_add().
Tadej
--
gtk_tree_path_up()
3. convert path back to iter using gtk_tree_model_get_iter()
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman
Both have this issue fixed, but you'll need GTK+ >= 2.20 for
it to work.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.or
Hi,
Why are you using '%x' format specifier in print statement to print
strings? Try replacing %x with %s and I'm almost sure things will work
out just fine.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.bor
s blog post for some screenshots[1].
Tadej
[1]
http://blogs.gnome.org/tvb/2010/03/30/one-week-of-glade-brought-to-you-by-openismus-gmbh/
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailin
Hello.
You get NULL pointer. To test for it, you should do something like:
if( s == NULL )
{
/* Handle empty string */
}
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing
pixels into CairoImageSurface and then scale it
using cairo directly when drawing.
Those three methods won't require you to add any additional
dependencies, since everything listed above is part of the standard
GTK+ installation.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmai
widget. I am wondering how to
> implement this.Any tips will be appreciated.
Just call gtk_widget_destroy() on previously inserted scrolled window.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk
te it with this when I have the time.
> Thanks for the pointer!
The signal that is emitted when cursor moves is
GtkTreeView::cursor-changed. GtkTreeView::move-cursor is action signal
that can be safely emitted by application.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
k you should be able to start experimenting.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
if clauses in
code that handles movement. You'll need to do some GtkTreeIter <->
GtkTreePath conversions in order to get everything working, but apart
from that, things should be relatively easy.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov..
Hi.
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.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...
Hello.
"pkg-config --modversion gtk+-2.0" will give you version of the installed GTK+.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnom
he fact that properties need to be
specified in right order for GtkBuilder to work properly. See this bug
report for more info:
https://bugzilla.gnome.org/show_bug.cgi?id=594372
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
__
Hello.
Don't use GtkToolButton for this purpose, use it's parent,
GtkToolItem[1] directly and pack combo box inside it.
Tadej
[1] http://library.gnome.org/devel/gtk/stable/GtkToolItem.html
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...
r the
exact name right now, but it's something along the
gspawn-win32-helper.exe). Is this helper application reachable when
executing your application?
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gt
Hi.
Again, this is really annoying. I'm having 3 exactly the same
messages, caused by your cross-posting. Please, stop doing that.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel
nce to other
widgets will increase.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
ot long ago. I proposed an additional property that
would control toplevel copying, but Matthias Clasen pointed out that
this can be achieved by using cell data function as shown in gtk-demo
application.
Tadej
[1] https://bugzilla.gnome.org/show_bug.cgi?id=604868
--
Tadej Borovšak
tadeboro.blogs
this is Ubuntu's "fault". They decided to reduce visual
clutter and trim images from menu items, buttons, etc. by default.
User can change this by setting "gtk-button-images" and
"gtk-menu-images" GtkSettings to TRUE, but I cannot help you
uld be displayed. Another example are DND icons. I really cannot
imagine situation where menu item with DND stock icon would make
sense.
BTW, I'm not the one who decides what becomes item and what not.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
e best to do searching in separate thread and only
queue updates of your GUI using g_idle_add() function.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-dev
ction that will hide window for you:
gtk_widget_hide_on_delete()[1].
Tadej
[1]
http://library.gnome.org/devel/gtk/stable/GtkWidget.html#gtk-widget-hide-on-delete
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
__
want to call the button and
> expander callbacks as if they were clicked with the mouse.
You can get hold of the proxy widget of the action by calling
gtk_action_get_proxies(). After you obtain the needed widget, you cna
call callback function like it would be called by GTK+ itse
Hello.
Callback prototype for "activate" signal is: void callback( GtkAction
*action, gpointer data );
When widget that proxies specific action is activated, it calls
gtk_action_activate() function which emits "activate" signal.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.co
Hello.
I just answered your query here:
http://gtkforums.com/viewtopic.php?p=12741#12741
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
Hello.
Just call gtk_tree_selection_select_iter/path() and you should be good.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
ter, 0, "Subscribers", 1, pixbuf, -1 );
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
--
gchar *string;
gtk_tree_model_get( GTK_TREE_MODEL( store ), &iter, 0, &string, -1 );
/* Do something with string here */
g_free( string );
CODE
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
__
And thinking about your problem again, you may also be interested in
this tutorial: http://scentric.net/tutorial/sec-treemodels.html, since
I feel like you don't know exactly how GtkTreeIter, GtkTreePath and
various stores fit together.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
t
eate new store and gtk_list_store_set call that added
strings into the store.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/list
e_iter_next().
If index is mean as a row number, than you can directly access it
using a code like this:
CODE
GtkTreePath *path;
GtkTreeIter iter;
path = gtk_tree_path_new_from_indices( index, -1 );
gtk_tree_model_get_iter( model, &iter, path );
gtk_tree_path_free( path );
---- CODE
Hello.
What about using g_ascii_* family of functions to do C locale
compliant conversion. g_ascii_strtod seems to be the function you
could use.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app
f_unref is deprecated in favor of g_object_unref, since
GdkPixbuf is derived from GObject now.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http
removed when you don't need an object to stick around.
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
e view after the function that caused the changes returns. I'm
afraid that there is no other way around it but to use g_idle_add.
Idle callbacks that are installed by GtkTreeView have quite high
priority, so your installed timeout/idle handlers will be
Hello.
Only situation that comes to my mind that would cause
g_signal_handlers_block_by_func to misbehave is if you do something
inside blocked part of code that installs idle handler to do the real
work. What are you doing inside "do_stuff" part?
Tadej
--
Tadej Borovšak
tadeboro.bl
derer from cell layout. You can empty it using
gtk_cell_layout_clear, but this is the only thing I could find. Maybe
you can clear the column before adding your cell renderer?
Tadej
--
Tadej Borovšak
tadeboro.blogspot.com
tadeb...@gmail.com
tadej.borov...@gmail.com
_
1 - 100 of 139 matches
Mail list logo