Re: Question on gtk_label_set_selectable

2007-10-19 Thread Yeti
On Fri, Oct 19, 2007 at 03:06:55PM +0200, Gian Mario Tagliaretti wrote: > > You can also set the can-focus property to FALSE on the label which > will be still selectable. Not exactly. It will be only selectable *with mouse*. Yeti -- http://gwy

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Yeti
get in the window that accepts focus (selectable labels can receive focus, unlike normal labels). Therefore the label will get focus, which selects its text -- at least this seems to be the default behaviour. If you add the label after it's decided which widget should receive focus, the label does not get focus and therefore its text is not selected. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: ld error multiple definitions

2007-10-13 Thread Yeti
s/file/ags_file.o:/home/link/ags/file/ags_file.c:32: > first defined here If you get definitions from the very same file and line clashing, you are trying to link this file twice -- one way or another. Also, I wonder why ags_file_class_init() is exported; it should be static

Re: GtkPageSetupUnixDialog and GtkPrintUnixDialog

2007-10-09 Thread Yeti
-3.fc7 gtk2-devel-2.10.14-3.fc7 *you* asked about are not provided by your Fedora 7, then at least one of us is confused. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkPageSetupUnixDialog and GtkPrintUnixDialog

2007-10-09 Thread Yeti
part of the API, you have to add flags from this package. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: calling functions defined in gtk's source file

2007-10-07 Thread Yeti
f you are 100% sure the parent class always has implemented and always will implement the virtual function, you can omit the if-clause and just call the method. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: pixbuf color count

2007-10-01 Thread Yeti
ave to either use an image manipulation library or count the distinct colours yourself. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Switch contents in the same window

2007-10-01 Thread Yeti
On Mon, Oct 01, 2007 at 10:54:32AM +0200, [EMAIL PROTECTED] wrote: > Sorry Yeti, but it's not what I'm searching for: I cannot implement > GtkAssistant > because I'm working on GTK+ 2.6 on an embedded system... You can still look at GtkAssistant source code as an example

Re: Switch contents in the same window

2007-10-01 Thread Yeti
ts, and when I > click the "Back" button it returns to the searching page again (for a new > search). Look at GtkAssistant. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Spontaneous background colors in treeview

2007-09-30 Thread Yeti
p://library.gnome.org/devel/gtk/stable/GtkTreeView.html#GtkTreeView--rules-hint http://library.gnome.org/devel/gtk/stable/GtkTreeView.html#GtkTreeView--allow-rules ? The alternating colors are controlled by the theme then. Yeti -- http://gwyddion.net/ _

Re: How to get all the key press event in a textview?

2007-09-28 Thread Yeti
nding on the order of key releases. But in all cases user's actions are faithfully reprorted. Yeti -- http://gwyddion.net/ = #include static gboolean key_event(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event)

Re: 16 bits grayscale images

2007-09-27 Thread Yeti
> How can I do my job ? If you don't expect the graphics system to be actually capable of displaying 16bpc images, it is easiest to just convert the data to 8bpp RGB (which is a trivial operation). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-

Re: Updating (showing) the widgets of a dialog in a g_thread

2007-09-23 Thread Yeti
show the dialog and let the Gtk+ main loop run normally (by quitting the function that constructs it). Add g_idle_add(long_function_finished, whatever); to the end of the thread running long_function(): long_function_finished() will be executed in the main loop, i.e. the main thread. No locks, no ob

Re: GdkPixbuf object from stock icons

2007-09-22 Thread Yeti
k you have the choice of gtk_widget_render_icon() gtk_icon_set_render_icon() gtk_style_render_icon() The most raw method is gtk_icon_theme_lookup_icon() + gtk_icon_info_load_icon() However, the icon will probably end up rendered on some widget -- and then use gtk_widget_render_icon() for this widget. Ye

Re: emit keypress event into event loop

2007-09-22 Thread Yeti
gnal_emit_by_name() documentation), therefore it overwrites some stuff on the stack that follows the arguments. Now something constructive: Synthetizing events is almost always a bad idea. At the end, you want the button to behave normally (i.e. connect to "clicked") and perform some sp

Re: start-editing signal?

2007-09-21 Thread Yeti
d that 0x822a5f0 is indeed the return value from > gtk_cell_renderer_text_new. > > Can anyone tell me how to make a valid hook-up? Start with the correct signal name: http://library.gnome.org/devel/gtk/stable/GtkCellRenderer.html#GtkCellRenderer-editing-st

Re: Window with no maximize button

2007-09-17 Thread Yeti
, some do not even have any meaning with some window management styles. Just set the hints logicaally, i.e. do not randomly choose hints that happen to make your particular window manager behave as you wish. > How can I > get this to work? You cannot ultimately control the window

Re: Lower case to upper case german ess-zet

2007-09-13 Thread Yeti
iprop.c becomes 0. And in this case the original character is returned at line 582. The code was changed on Thu Mar 22 09:11:27 2007 UTC, so if your GLib is older than that (i.e. a stable release older than 2.12.12), it's too old. Yeti -- http://gwyddion.net/ __

Re: Changing a previously created GtkImage

2007-09-12 Thread Yeti
seem quite fragile to me. 1) Try g_file_test() to check whether "pictures/Full.gif" exists as the time on_button1_pressed() is called. 2) Try to load the image with gdk_pixbuf_load() and look at the error your obtain. Yeti -- http://gwyddion.net/ ___ 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 convert a jpg image to a GtkImage ?

2007-09-11 Thread Yeti
ead it... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Lower case to upper case german ess-zet

2007-09-11 Thread Yeti
27;ß', Upper:'SS' I get g_unichar_toupper. Lower:'ß', Upper:'ß' g_utf8_strup. Lower:'ß', Upper:'SS' as expected. Perhaps a too old GLib? Yeti -- http://gwyddion.net/ ___ 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 detect gtk widget partial visible? visibility-notify-event?

2007-09-11 Thread Yeti
t;visibility-notify-event" but never receive callback, gtk_widget_add_events(widget, GDK_VISIBILITY_NOTIFY_MASK); Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Using GtkFileChooserWidget

2007-09-10 Thread Yeti
is > clicked - just to keep it brief. Who might I contact regarding this issue?? Probably bugzilla.gnome.org. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: gtk pango draw rotated text

2007-09-10 Thread Yeti
On Mon, Sep 10, 2007 at 01:27:48PM +0100, Luis Rodrigues wrote: > It's not on my system. > > I use Debian, do you happen do know the package name? http://packages.debian.org/search?searchon=contents&keywords=gtk-demo&mode=path&suite=stable&arch=any

Re: How to convert a jpg image to a GtkImage ?

2007-09-09 Thread Yeti
t; have a finalize routine, but I'm not sure how to invoke it :) GdkPixbufLoader is a GObject, you get rid of it as of anything else: by releasing the last reference with g_object_unref(). > reusing the loader (if possible). This is not possi

Re: GTK drawing area cannot get keyboard events

2007-09-08 Thread Yeti
not an event mask (i.e. GdkEventMask value), it's an event type (i.e. GdkEventType valye). It should be GDK_FOCUS_CHANGE_MASK. Ditto in the key press case. Also ensure you add events before the widget is realized. Yeti -- http://gwyddion.net/

Re: Conversion functions.

2007-09-08 Thread Yeti
o pages instead, the explanations there are clear. sizeof(a-pointer-to-char) is the size of the pointer, usually 8 or 4. The second fgets() argument should be the allocated size of the string (or a smaller positive number). Yeti -- http://gwyddion.net/ _

Re: Regrading gtk thread

2007-09-08 Thread Yeti
gt; > How do I solve this error and if there is a better way to do this ?? Filter question: Did you read and follow http://library.gnome.org/devel/gdk/stable/gdk-Threads.html ? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing

Re: Conversion functions.

2007-09-07 Thread Yeti
On Fri, Sep 07, 2007 at 01:45:09AM +0200, Magnus Myrefors wrote: > > yeti>> I have tested your minimal testprogram with the whole > test-file. Unfortunately the program doesn't print anything to > stdout. It doesn't seem to be any data stored in the GSList > or i

Re: focus-out-event and GtkEntry

2007-09-06 Thread Yeti
u want the default handler to run. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Conversion functions.

2007-09-06 Thread Yeti
to say your problem is not broken g_ascii_strtod(). As a bonus, the attached program prints a detailed error to stderr if there are malformed data rows in the file. Yeti -- http://gwyddion.net/ = #define _GNU_SOURCE 1 #i

Re: Pass multiple arguments to a signal event

2007-09-05 Thread Yeti
[1] = entry2; g_signal_connect_swapped(button, "clicked", G_CALLBACK(callback_func_example), here_the_two_widgets); (not the best example, but hopefully gives the idea). Yeti -- http://gwyddion.net/ _

Re: Conversion functions.

2007-09-04 Thread Yeti
ven't > seen a pointer in a if-statement like that before. That's a common idiom. NULL is zero and zero is false. Anything else is nonzero and therefore true. > I guess I have to write my own conversion-function. Good luck with that (I still think a bug in th

Re: Conversion functions.

2007-09-04 Thread Yeti
in this case - copy g_ascii_strtod() from the latest glib/strfuncs.c, paste to your code and use this copy to see whether it makes any difference Still, the randomness indicates a nasty bug in your program. I suppose if you make a minimal program that just reads the data, the problem goes away.

Re: Conversion functions.

2007-09-04 Thread Yeti
andomly. Then try valgrind as I suggested, it's the easiest thing to try. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Conversion functions.

2007-09-03 Thread Yeti
nd on the state of the rest of the program in a complex way, memory corruption elsewhere in your program is the likely cause (try valgrind). If wrong values are rare but reproducible, it should be easy to prepare a simple test case. Yeti -- http://gwyddion.net/ _

Re: Toggle and the Inconsistent Property

2007-09-02 Thread Yeti
endering of the states is theme dependent. Yeti -- http://gwyddion.net/ ___ 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 convert a jpg image to a GtkImage ?

2007-08-31 Thread Yeti
ate a new image in memory with gdk_image_new() and copy the > decoded RGB data over. No, explicit use of libjpeg is not necessary. Create a GdkPixbufLoader, feed the in-memory image date to it with gdk_pixbuf_loader_write() and if everything is all right fetch the GdkPixbuf from it. Then construct

Re: How to compile and link GTK2 Programms tobe compatibe with XFree86 and Xorg

2007-08-31 Thread Yeti
instance on a virtual machine). The other possibility is to dlopen everything -- generally fragile. The third possibility is to bundle the libraries -- probably not an option with X. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: pixbuf in event box in treeview

2007-08-30 Thread Yeti
nd the cell corresponding to the event's coordinates. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Send mouse button press event to widget??

2007-08-30 Thread Yeti
or other means - send the event with gtk_widget_event() - free event - remember if you send a button presses and no button releases, widgets can get confused Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org h

Re: Check Boxes Don't Work Independently

2007-08-30 Thread Yeti
ot;, COL_DISABLE); (the meaning will be `enable' not `disable' of course, if you want the view to display the opposite of what's in the model, you have to set a cell data function -- like for essentially any other transform). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Send mouse button press event to widget??

2007-08-30 Thread Yeti
need to send a synthetic an event to a widget, a better solution exists. So, tell what you want to achieve. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Setting treeview column width

2007-08-30 Thread Yeti
nsert_column(GTK_TREE_VIEW(treeview), column, > -1); > gtk_tree_view_column_set_resizable(column, FALSE); If the column is the last in the treeview, it will fill all the remaning width even if it's fixed-size -- unless there are some expanding columns present. Yeti -- http://gwyddion.net/ _

Re: GtkDialog problems again

2007-08-27 Thread Yeti
un(), just show_all the dialog, connect to its "response" signal (process any user response in the callback) and let the main loop continue. Otherwise I'm unsure what you are trying (things such as calling gtk_widget_hide_all() and then immediately gtk_widget_destroy() on the di

Re: gtk_cell_renderer_toggle_new()

2007-08-27 Thread Yeti
th toggles) for a correct use of cell renderers. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GtkColorButton and GtkFontButton problems

2007-08-24 Thread Yeti
ng the child dialogs. > Is this a bug in those widgets ? Should I report this as a bug ? More likely elsewhere, I encountered it with various kinds of modal dialogs, e.g. child message dialogs and my own subdialogs. If you can create a minimal example and the bug has not been reporte

Re: multiple selection and drag-n-drop

2007-08-23 Thread Yeti
ection, and only the element directly under the > mouse pointer actually gets dragged. A very old bug. See http://bugzilla.gnome.org/show_bug.cgi?id=70479 Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.

Re: Editing in GtkTreeView - Automatic Edit and Unwanted Edit Box?

2007-08-19 Thread Yeti
cell is not updated. Does anyone know why this odd > behaviour is happening and what I can do to stop it? I suppose it's the search box. In such case: gtk_tree_view_set_enable_search(treeview, FALSE); (or set the corresponding property). Yeti -- http://gwyddion.net/ ___

Re: how to scroll a gtk_scrolled_window ?

2007-08-19 Thread Yeti
_[hv]adjustment() return the adjustments. Set them to the desired positions. See the description of GtkScrolledWindow for how it uses them (paragraph 5: The position of the scrollbars is controlled...). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-

Re: How to use GtkPrint

2007-08-14 Thread Yeti
#x27; So where exactly you checked if it exists in your version of Gtk+? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Compiling GTK undefined references

2007-08-14 Thread Yeti
s in the stack to use the new glib, this probably means atk in you case. Also ensure make sure cairo is compiled first, then pango, because the dependency is in this order. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Problems Re-populating GtkTreeView

2007-08-12 Thread Yeti
-- but that's the opposite of what you want. Also, clearing the model and filling it with something completely different will not save much. Creating a new model, filling it, calling gtk_tree_view_set_model() and unreferencing the new model can be even more efficient. Yeti -- http://gwyd

Re: How to make GtkTreeview columns invisible

2007-08-10 Thread Yeti
e received this message in error. The author of this dislaimer is hereby notified that I will continue to disclose, copy and distribute anything I receive from a public mailing list. If he/she/it does not want this disclaimer to lose any threatening weight (it does not have any legal weight anyway)

Re: gtk_tree_model_iter_next works, what should I do about prev]

2007-08-10 Thread Yeti
L, NULL); gtk_tree_view_append_column(GTK_TREE_VIEW(view), column); selection = gtk_tree_view_get_selection(GTK_TREE_VIEW(view)); gtk_tree_selection_set_mode(selection, GTK_SELECTION_BROWSE); g_signal_connect(selection, "changed", G_CALLBACK(selection_

Re: color of vscrollbar

2007-08-08 Thread Yeti
s in the long term, by reducing employee productivity or other means. I am even thinking about reporting all e-mail with this confidental bullshit (which is usually significantly longer than the message itself) as spam. Yeti -- http://gwyddion.net/ ___ gtk-a

Re: Who to replace deprecated functions

2007-08-07 Thread Yeti
gt;gtk_action_group_add_action(...) >gtk_ui_manager_add_ui_from_string(...) > > can append a new menu item. But how can I remove a menu item? This one is easy: gtk_ui_manager_add_ui_from_string() returns a merge id. And that's what you pass to gtk_ui_manager_remove

Re: Font width in gtk 2.x

2007-08-07 Thread Yeti
ze for Entry Widgets the > lenghts of the selected Font of the application. gtk_entry_set_width_chars() cannot be used? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Xlib: unexpected async reply (sequence #####)!

2007-08-04 Thread Yeti
me.org/doc/API/2.0/gdk/gdk-Threads.html People typically operate on the GUI only from the main thread (i.e. running gtk_main()) and pass work requests to it via g_idle_add() or some other queue mechanism. This topic is discussed here every other w

Re: Question about signals in GObject

2007-07-29 Thread Yeti
emory, errors will occur. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Compiling simple GTK+ input methods

2007-07-28 Thread Yeti
nding out the Gtk+ binary version for determining the installation directory with pkg-config --variable=gtk_binary_version gtk+-2.0 (you should put all this configuration into proper configure tests of course). Yeti -- http://gwyddion.net/ ___

Re: .desktop files and Makefile.am

2007-07-27 Thread Yeti
configure check, second, this is counterproductive when building a distro package and installling into a staging area. None of this is actually related to Gtk+... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Image Loading Problem on Windows Box

2007-07-24 Thread Yeti
ink of, is that I am using the wrong > compiler. I am currently using Microsoft's cl compiler version > 14.00.50727.42. I had tried Borland's C compiler, but that threw up a > whole host of problems with linking to DLLs. > > > Any help would be greatly ap

Re: Locking the width of a column in a tree view

2007-07-24 Thread Yeti
On Tue, Jul 24, 2007 at 10:48:16AM -0600, Kevin DeKorte wrote: > I would like to make it so that the first column > is the column that is stretched and the second column remains the > smallest size it can be based on contents and font. gtk_tree_view_column_set_expand() Yeti

Re: Designing objects with GObject

2007-06-29 Thread Yeti
s the same name it will replace whatever properties were > installed by parent classes or interfaces. Why this isn't written anywhere... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gno

Re: Designing objects with GObject

2007-06-29 Thread Yeti
ead to all sorts of odd behaviour. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Designing objects with GObject

2007-06-28 Thread Yeti
ake a READABLE proeprty READWRITE? Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: geometry hints screwing up window sizes

2007-06-28 Thread Yeti
0, 300); g_signal_connect(window, "destroy", G_CALLBACK(gtk_main_quit), NULL); g_signal_connect(window, "key-press-event", G_CALLBACK(key_press), NULL); g_print("Press 0-9 to resize me.\n"); gtk_widget_show_all(window); gtk_main(); return 0; } ===

Re: Problem with gtk_label_set_text

2007-06-28 Thread Yeti
running gtk_main()) for instance via g_idle_add(), or add locking with gdk_gthreads_enter(), gdk_gthreads_leave() -- and note the latter will still not allow you to call Gtk+ function from multiple threads on MS Windows. For details, see the mailing list archives, this topic is discussed twice a wee

Re: Problem with gtk_label_set_text

2007-06-28 Thread Yeti
ailed information you provided. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: motion-notify-event works only once

2007-06-27 Thread Yeti
", G_CALLBACK(motion), NULL); gtk_widget_show_all(window); gtk_main(); return 0; } The thing you *possibly* forgot is to call gdk_window_get_pointer() which you have to as you explicitly asked -- by using GDK_POINTER_MOTION_HINT_MASK -- no

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Yeti
n size-allocate, the widget implementation seems to be trivial here (boilerplate code plus one gdk_draw_pixbuf() in "expose-event"). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Yeti
ith > some delay after gtk_image_set_from_pixbuf is called. It does a round-trip through the X server, so the allocation is performed after you return from the signal handler. I do not follow this thread, but can't you just compare the new allocation to the current one and do nothing when

Re: FW: Text wrapping along with ellipsizing

2007-06-26 Thread Yeti
ext and reflowing can give an acceptable result if lines are broken only between `words' (whatever it means for the script). You can also try to measure the three lines, limit the rendering area accordingly, and then uses some graphic effect such as fade out instead of ellipsis. Or s

Re: Gtk with .po files

2007-06-26 Thread Yeti
ic concepts, look at any internationalized Gtk+ application as working real world examples are better than tutorials. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gt

Re: macro IS_xxx

2007-06-24 Thread Yeti
a single object system implementation that behaves differently in this regard... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Proper Handling of GtkTreeModelFilters

2007-06-22 Thread Yeti
It's hard to deduce anything from such code fragment. If you don't need to keep the filters around, it's probably easiest to release the inital reference immediately after you do gtk_tree_view_set_model() and do not care about them any more as they will be destroyed automatically once

Re: Invalid UTF-8 string being sent to callback function on "toggled" signal from GtkCellRendererToggle

2007-06-20 Thread Yeti
d path". > The following is the output to the terminal upon toggling one of the > GtkCellRendererToggle(s), followed by the code that will reproduce > this problem. What am I doing wrong? A `*' is missing in on_cell_renderer_toggle_toggle

Re: GtkTreeView in a Scrolled Window

2007-06-20 Thread Yeti
ll there.My need is to show the latest row added always so that > my screen looks updated. http://developer.gnome.org/doc/API/2.0/gtk/GtkTreeView.html#gtk-tree-view-scroll-to-cell Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk

Re: GSlice: g_thread_init() must be called before all other GLib functions;

2007-06-19 Thread Yeti
.0' to the list of pkg-config packages your program depends on (have no idea how to do this in Anjuta or Glade, but it typically should appear in an argument of PKG_CHECK_MODULES() in configure.ac at the end). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: multi thread app and often variable accessing

2007-06-08 Thread Yeti
On Fri, Jun 08, 2007 at 09:27:38PM +0200, David Nečas (Yeti) wrote: > > Attempts to use atomic operations without considering memory [*] > access ordering guarantee subtle bugs... [*] as a substitute for locking. Yeti -- http://gwy

Re: multi thread app and often variable accessing

2007-06-08 Thread Yeti
Attempts to use atomic operations without considering memory access ordering guarantee subtle bugs... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Yeti
ed libraries are loaded, but before they are used (basically at > the same time as when I'd call g_mem_set_vtable). > Is this possible? GSlice is initialized, i.e. it looks at G_SLICE, on the first use or when thread support is initialized. So just set

Re: Buttons in groups

2007-06-07 Thread Yeti
they'd be perfect for me. GtkRadioButton is a GtkContainer (as any button) and can contain anything, just don't use the convenience cosntructors and pack the icon or whatever yourself. And see also gtk_toggle_button_set_mode(). You should also consider GtkToolbar if you want to create a toolba

Re: Buttons in groups

2007-06-06 Thread Yeti
On Thu, Jun 07, 2007 at 07:25:13AM +0100, Christopher Garrett wrote: > Is there a way of placing a GtkToggleButton into a group so that when one > button > is selected the others in the group automatically get unselected? By using GtkRadioButtons? Yeti -- http://gwy

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Yeti
the values you expected the function to get, you could see calculate_cb() got main_window as its second argument, not third, which could be a sufficient hint to check the function signatures -- just an advice for the future... Yeti -- http://gwyddion.net/

Re: Clear A Pixmap

2007-06-02 Thread Yeti
On Fri, Jun 01, 2007 at 05:38:54PM -0700, nahuel9728 wrote: > > Thaxs Yeti for the answer but Sorry I'm not able to do it. I explain a little > bit what im doing and i would like to do: > main(){ > mem_map=gtk_drawing_area_new(); > gtk_signal_connect (GTK_OBJECT (

Re: gtk+ about dialog doesn't close

2007-06-02 Thread Yeti
ESPONSE_DELETE_EVENT (closed by window manager means) destroy/hide/whatever the dialog. I find GtkAboutDialog a textbook example of second system effect -- I mean an about dialog with several nested subdialogs, at least one of them tabbed? The complete user interface of some applications is simpli

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Yeti
may want to use a multilevel or search+paging base interface instead -- essentially something that avoids the signle list with a million of rows by design. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Clear A Pixmap

2007-05-31 Thread Yeti
drawing area repaint (e.g. with gtk_widget_queue_draw()) and just do not draw anything there in the "expose-event" handler this time. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnom

Re: Window receiving button-release-event

2007-05-30 Thread Yeti
default handler of the signal > instance", so I hoped it should work even when there is another signal > handler installed. This would be true for non-event handlers. Once an event handler returns TRUE the event is considered handled and the remaining handlers are never run. Yeti -- htt

Re: Shared or dynamic?!

2007-05-30 Thread Yeti
efault to build both types (provided that it's possible on the target platform). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GdkImage from GdkPixbuf

2007-05-29 Thread Yeti
if it's even Tuesday. And it goes through the X server. Actually I think if you use GdkImage you deserve it... There are some useful bits in GdkRGB, but more in its source code than its API. And by bits I mean almost complete gdkrgb.c including the dithering matrices. Yeti -- http://gwyddion

Re: How to add stuff to treeviews??

2007-05-29 Thread Yeti
code, very stripped down (to remove possible errors) is: Please post selfcontained (compilable) code. Anyway, you exchanged the child and parent iters in the tree store construction. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-dev

Re: Problem with gtk drawing primitive

2007-05-28 Thread Yeti
w, GTK_STATE_NORMAL); > gtk_paint_polygon(blankstyle, w->window, GTK_STATE_NORMAL, GTK_SHADOW_OUT, > NULL, w, NULL, points, 8, TRUE); > > Please could anyone help me with this problem? I suspect blankstyle = gtk_s

Re: How to build a GtkTree?

2007-05-26 Thread Yeti
t you are looking for on that level -- AFAIK there's no function for that, it would be probably equally complicated to use as walking though the tree manually... Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Access to a single character in a button label

2007-05-26 Thread Yeti
. Anyway, you can pack a GtkLabel into the button manually instead of using gtk_button_new_with...(), and you can use Pango markup in this label to change color, font or anything. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-d

Re: GtkTreeView: Simple application

2007-05-25 Thread Yeti
(nonexistent) column 1. > gtk_tree_view_append_column (GTK_TREE_VIEW (main_window_treeview1), > column); > > gtk_main(); > > return 0; > } > > So... I can't see the result of: > > gtk_list_store_set (main_window_list, &iter, >

Re: How to create a self contained GTK+ Application for Linux

2007-05-23 Thread Yeti
Win32. I asked how you do this on other systems. Moreover, Win32 has some habit of looking for libraries in the executable's directory, and that's both weird and the only reason why it works. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-lis

Re: menuitem activate

2007-05-23 Thread Yeti
rectory view exists during the whole lifetime of the program, there's still a small window between the shutdown of the GUI (when the directory view widget is destroyed) and the actual end of the program. So it has to keep track of active DirView[s], somehow. I just suggested one method. Yeti

  1   2   3   4   5   6   >