Re: coordinate system context for a drawing area uses (relative to get_allocation)

2017-05-15 Thread Tadej Borovšak
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

Re: Get a list of object *names* from GtkBuilder

2015-11-15 Thread Tadej Borovšak
-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

Re: GTK signals question.

2014-03-05 Thread Tadej Borovšak
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 -

Re: Gdk PixbufAnimation supported formats

2013-04-18 Thread Tadej Borovšak
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

Re: gtkrbtree core dump

2012-09-30 Thread Tadej Borovšak
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

Re: getting the icon pixbuf for a file

2012-08-16 Thread Tadej Borovšak
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

Re: GList strange behavior

2012-08-16 Thread Tadej Borovšak
, 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

Re: gtk-win32 crash when trying to move a GTK top level window

2012-07-29 Thread Tadej Borovšak
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 ___

Re: GTK 3.0 inactive buttons (Buttons : maximize , minimize , close )

2012-06-21 Thread Tadej Borovšak
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

Re: GtkDrawingArea size

2012-03-08 Thread Tadej Borovšak
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

Re: Where is GStatBuf ?

2012-02-25 Thread Tadej Borovšak
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

Re: Where is GStatBuf ?

2012-02-25 Thread Tadej Borovšak
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

Re: "HELP/About" was :: [Re: suggestions on user config?]

2012-02-19 Thread Tadej Borovšak
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

Re: How does gtk display glyph with code in private use area?

2012-02-13 Thread Tadej Borovšak
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

Re: window icon resolution

2012-02-08 Thread Tadej Borovšak
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

Re: gtk_tree_view_column_set_cell_data_func gives GTK-CRITICAL error

2011-11-30 Thread Tadej Borovšak
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

Re: IconView select_path "inactive" selection

2011-09-13 Thread Tadej Borovšak
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 --

Re: Re: HScale don't move

2011-08-09 Thread Tadej Borovšak
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

Re: HScale don't move

2011-08-08 Thread Tadej Borovšak
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

Re: Window styles

2011-05-27 Thread Tadej Borovšak
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

Re: GSource object lifetime

2011-05-03 Thread 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

Re: GSource object lifetime

2011-05-03 Thread Tadej Borovšak
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. --

Re: GOption & friends

2011-03-21 Thread Tadej Borovšak
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

RE: GtkSwitch — lack of specific signal

2011-03-05 Thread Tadej Borovšak
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

RE: GtkSwitch — lack of specific signal

2011-03-04 Thread Tadej Borovšak
*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

Re: Drawing area with different layers

2011-02-28 Thread Tadej Borovšak
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

Re: g_spawn_async_with_pipes

2011-02-12 Thread Tadej Borovšak
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 __

Re: Bring a widget to the foreground

2011-01-02 Thread Tadej Borovšak
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

Re: GTK and color names

2010-12-04 Thread Tadej Borovšak
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

Re: Widget name is 0x0 after GtkWidget key-press-event

2010-08-13 Thread Tadej Borovšak
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

Re: GtkIconView remove item

2010-08-11 Thread Tadej Borovšak
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 -

Re: How to work with a gpointer argument

2010-08-10 Thread Tadej Borovšak
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

Re: how to read Gtk signal document ?

2010-08-10 Thread Tadej Borovšak
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.

Re: how to read Gtk signal document ?

2010-08-09 Thread Tadej Borovšak
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

Re: Question concerning forced expose-events

2010-08-04 Thread Tadej Borovšak
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

Re: GTK deadlock in gtk_main

2010-08-03 Thread Tadej Borovšak
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

Re: GTK deadlock in gtk_main

2010-08-03 Thread Tadej Borovšak
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

Re: how to implement my own window decoration

2010-07-28 Thread Tadej Borovšak
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

Re: image printing

2010-07-23 Thread Tadej Borovšak
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

Re: Screen resolution

2010-07-09 Thread Tadej Borovšak
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

Re: Screen resolution

2010-07-09 Thread Tadej Borovšak
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

Re: Screen resolution

2010-07-09 Thread Tadej Borovšak
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/

Re: liststore manipulation question

2010-07-08 Thread Tadej Borovšak
_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

Re: custom widgets - advice on where to start?

2010-07-07 Thread Tadej Borovšak
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

Re: Treeview, different Cell-render per row

2010-07-06 Thread 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

Re: Treeview, start editing with any Key, not just Enter or space

2010-07-06 Thread Tadej Borovšak
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

Re: GTK/GDK equivalent to UpdateWindow() ?

2010-07-04 Thread Tadej Borovšak
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

Re: Implementing my own ScrolledWindow

2010-07-04 Thread Tadej Borovšak
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 __

Re: gtk_action_block_activate fails to block ?!?

2010-06-29 Thread Tadej Borovšak
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...

Re: GdkDrawingArea on the GtkImage

2010-06-29 Thread Tadej Borovšak
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..

Re: using GdkPixbuf icons in GtkUIManager ?

2010-06-24 Thread Tadej Borovšak
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

Re: custom spin button format

2010-06-18 Thread Tadej Borovšak
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

Re: gtk_window_fullscreen problem

2010-06-13 Thread Tadej Borovšak
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

Re: gtk_window_fullscreen problem

2010-06-13 Thread Tadej Borovšak
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.

Re: GNOME images not displaying

2010-06-13 Thread Tadej Borovšak
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 ___

Re: Translating co-ordinates from local to screen space

2010-06-11 Thread Tadej Borovšak
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..

Re: How to get a widget from its parent of parent(...) by name?

2010-06-09 Thread Tadej Borovšak
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

Re: how to control aspect ratio of a child widget using gtk_window_set_geometry_hints

2010-06-03 Thread Tadej Borovšak
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

Re: 1-Bit Bitmap

2010-05-31 Thread Tadej Borovšak
'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

Re: GtkProgressBar state update issue

2010-05-28 Thread Tadej Borovšak
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

Re: Focus of about dialog

2010-05-26 Thread Tadej Borovšak
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 _

Re: gtk_tree_view_scroll_to_cell() not scrolling

2010-05-16 Thread Tadej Borovšak
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

Re: Setting the font for Gtk::Button

2010-05-06 Thread Tadej Borovšak
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 --

Re: how to get the parent of a selected row in treeview?

2010-04-26 Thread Tadej Borovšak
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

Re: Default values for spin buttons in Glade

2010-04-26 Thread Tadej Borovšak
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

Re: gtk_list_store from XML UI not storing strings

2010-04-25 Thread Tadej Borovšak
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

Re: Puzzling behavior when passing user data to callback from Glade

2010-04-25 Thread Tadej Borovšak
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

Re: what do i get if a cell is empty?

2010-04-24 Thread Tadej Borovšak
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

Re: Zoom/magnification of images in GDK

2010-04-21 Thread Tadej Borovšak
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

Re: how to remove the contents of vbox?

2010-04-19 Thread Tadej Borovšak
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

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Tadej Borovšak
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

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Tadej Borovšak
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

Re: How to create custom keyboard shortcuts for GTKTreeView?

2010-04-17 Thread Tadej Borovšak
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..

Re: Hover decorations in GtkIconView

2010-03-26 Thread Tadej Borovšak
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...

Re: What version do I have

2010-03-15 Thread Tadej Borovšak
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

Re: Bug inside GtkBuilder w/ GtkAdjustment

2010-02-28 Thread Tadej Borovšak
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 __

Re: putting combobox in toolbar

2010-02-23 Thread Tadej Borovšak
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...

Re: g_spawn_async_with_pipes on windows

2010-02-10 Thread Tadej Borovšak
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

Re: GtkAttachOptions usage!!

2010-02-05 Thread Tadej Borovšak
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

Re: gtk_table_attach api, GtkAttachOptions usage

2010-02-05 Thread Tadej Borovšak
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

Re: ComboBox submenus

2010-01-19 Thread Tadej Borovšak
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

Re: bitmap in button doesn't appear in 64bit 9.10

2010-01-19 Thread Tadej Borovšak
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

Re: Nobody ever used GTK_STOCK_FILE?

2010-01-12 Thread Tadej Borovšak
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

Re: progress popup and flushing events

2010-01-09 Thread Tadej Borovšak
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

Re: how to catch window manager close

2010-01-08 Thread Tadej Borovšak
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 __

Re: GTK Action Handler

2009-12-31 Thread Tadej Borovšak
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

Re: GTK Action Handler

2009-12-31 Thread Tadej Borovšak
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

Re: Problem with table

2009-12-29 Thread Tadej Borovšak
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

Re: GtkTreeView auto selecting row

2009-12-16 Thread Tadej Borovšak
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

Re: Storing images in GtkTreeView model

2009-12-16 Thread Tadej Borovšak
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

Re: how to browse values from a GtkListStore ?

2009-11-15 Thread Tadej Borovšak
-- 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 __

Re: how to browse values from a GtkListStore ?

2009-11-15 Thread Tadej Borovšak
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

Re: how to browse values from a GtkListStore ?

2009-11-15 Thread Tadej Borovšak
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

Re: how to browse values from a GtkListStore ?

2009-11-15 Thread Tadej Borovšak
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

Re: code work wrong when i put it in gtk+ application

2009-11-12 Thread Tadej Borovšak
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

Re: gdk_pixbuf_composite leaves artifacts in the dest pixbuf, if, dest_x is > 0. Help please?

2009-11-11 Thread Tadej Borovšak
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

Re: gobject ref and unref ?

2009-11-10 Thread Tadej Borovšak
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

Re: GtkTreeView: g_signal_handlers_unblock_by_func

2009-10-31 Thread Tadej Borovšak
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

Re: GtkTreeView: g_signal_handlers_unblock_by_func

2009-10-31 Thread Tadej Borovšak
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

Re: How to suppress text on GtkCellRendererToggle

2009-09-24 Thread Tadej Borovšak
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   2   >