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://gwyddion.net

Re: Question on gtk_label_set_selectable

2007-10-19 Thread Yeti
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

Re: ld error multiple definitions

2007-10-13 Thread Yeti
/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. Yeti -- http://gwyddion.net

Re: GtkPageSetupUnixDialog and GtkPrintUnixDialog

2007-10-09 Thread Yeti
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
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: 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 implementation (although

Re: pixbuf color count

2007-10-01 Thread Yeti
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: Spontaneous background colors in treeview

2007-09-30 Thread Yeti
/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/ ___ gtk-app-devel-list

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

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

Re: 16 bits grayscale images

2007-09-27 Thread Yeti
? 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-list mailing list gtk-app-devel

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

2007-09-23 Thread Yeti
of the thread running long_function(): long_function_finished() will be executed in the main loop, i.e. the main thread. No locks, no obscure constructs, works on Win32 too. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel

Re: emit keypress event into event loop

2007-09-22 Thread Yeti
, delete text, change text, ... For all these things GtkTextView/Buffer have methods. Use them directly. 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: GdkPixbuf object from stock icons

2007-09-22 Thread Yeti
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. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing

Re: start-editing signal?

2007-09-21 Thread Yeti
://library.gnome.org/devel/gtk/stable/GtkCellRenderer.html#GtkCellRenderer-editing-started Looking at the documentation should be first thing when you get a GObject complaint about invalid signal/property name. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list

Re: Window with no maximize button

2007-09-17 Thread Yeti
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 decorations. And let me immediately add, it's a good thing. Yeti -- http://gwyddion.net

Re: Lower case to upper case german ess-zet

2007-09-13 Thread Yeti
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/ ___ gtk-app-devel-list mailing list gtk-app-devel

Re: Changing a previously created GtkImage

2007-09-12 Thread Yeti
? Paths such as pictures/Full.gif 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

Re: How to detect gtk widget partial visible? visibility-notify-event?

2007-09-11 Thread Yeti
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: Lower case to upper case german ess-zet

2007-09-11 Thread Yeti
' 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 convert a jpg image to a GtkImage ?

2007-09-11 Thread Yeti
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: 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=contentskeywords=gtk-demomode=pathsuite=stablearch=any Yeti -- http://gwyddion.net

Re: Using GtkFileChooserWidget

2007-09-10 Thread Yeti
- 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: How to convert a jpg image to a GtkImage ?

2007-09-09 Thread Yeti
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 possible (the loader is tied to its pixbuf). Yeti -- http://gwyddion.net/ ___ gtk

Re: Regrading gtk thread

2007-09-08 Thread Yeti
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 list gtk-app-devel-list@gnome.org http

Re: Conversion functions.

2007-09-08 Thread Yeti
, 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/ ___ gtk-app-devel-list

Re: GTK drawing area cannot get keyboard events

2007-09-08 Thread Yeti
. 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/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

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 in the datastructure, Data *data

Re: Conversion functions.

2007-09-06 Thread Yeti
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 #include stdlib.h #include stdio.h

Re: focus-out-event and GtkEntry

2007-09-06 Thread Yeti
a dialog box. The problem is I get an GtkWarning and GtkError: ... Check the focus-out-event signal handler prototype http://library.gnome.org/devel/gtk/stable/GtkWidget.html#GtkWidget-focus-out-event *including the return value*, you must return FALSE if you want the default handler to run. Yeti

Re: Pass multiple arguments to a signal event

2007-09-05 Thread Yeti
, G_CALLBACK(callback_func_example), here_the_two_widgets); (not the best example, but hopefully gives the idea). Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: Conversion functions.

2007-09-04 Thread Yeti
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-04 Thread Yeti
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 the program and not in GLib is the most probable cause). Yeti -- http://gwyddion.net

Re: Conversion functions.

2007-09-03 Thread Yeti
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/ ___ gtk-app-devel

Re: Toggle and the Inconsistent Property

2007-09-02 Thread Yeti
: - not marked for deletion - marked for deletion where the second has two sub-states. I suggest to think about a different presentation than abusing inconsistent (adding a small mark to one of the substates for instance), especially since the rendering of the states is theme dependent. Yeti -- http

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

2007-08-31 Thread Yeti
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 the GtkImage with gtk_image_new_from_pixbuf(). Yeti -- http://gwyddion.net

Re: Setting treeview column width

2007-08-30 Thread Yeti
); 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/ ___ gtk-app-devel-list mailing list gtk-app

Re: Check Boxes Don't Work Independently

2007-08-30 Thread Yeti
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
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 http://mail.gnome.org/mailman/listinfo/gtk-app

Re: pixbuf in event box in treeview

2007-08-30 Thread Yeti
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: gtk_cell_renderer_toggle_new()

2007-08-27 Thread Yeti
) 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: GtkDialog problems again

2007-08-27 Thread Yeti
gtk_widget_destroy() on the dialog do not make much sense to me). 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
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 reported yet, then please report. Yeti -- http://gwyddion.net

Re: multiple selection and drag-n-drop

2007-08-23 Thread Yeti
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.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: how to scroll a gtk_scrolled_window ?

2007-08-19 Thread Yeti
of GtkScrolledWindow for how it uses them (paragraph 5: The position of the scrollbars is controlled...). 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

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

2007-08-19 Thread Yeti
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/ ___ gtk-app-devel-list mailing list

Re: How to use GtkPrint

2007-08-14 Thread Yeti
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: Problems Re-populating GtkTreeView

2007-08-12 Thread Yeti
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://gwyddion.net/ ___ gtk-app-devel-list mailing list

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

2007-08-10 Thread Yeti
); gtk_main(); return 0; } 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 make GtkTreeview columns invisible

2007-08-10 Thread Yeti
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), he/she/it will have to sue me. Yeti -- http

Re: color of vscrollbar

2007-08-08 Thread Yeti
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-app-devel-list mailing list gtk-app-devel-list

Re: Font width in gtk 2.x

2007-08-07 Thread Yeti
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: Who to replace deprecated functions

2007-08-07 Thread Yeti
(...) 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_ui() remove it again. Yeti -- http://gwyddion.net

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

2007-08-04 Thread Yeti
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 week, see the list archives. Yeti -- http://gwyddion.net/ ___ gtk-app-devel

Re: Question about signals in GObject

2007-07-29 Thread Yeti
. 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
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/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http

Re: .desktop files and Makefile.am

2007-07-27 Thread Yeti
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: 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 -- http://gwyddion.net

Re: Image Loading Problem on Windows Box

2007-07-24 Thread Yeti
Borland's C compiler, but that threw up a whole host of problems with linking to DLLs. Any help would be greatly appreciated, For start, have you tried to pass a GError to gdk_pixbuf_new_from_file() and look at the error you get? Yeti -- http://gwyddion.net

Re: Designing objects with GObject

2007-06-29 Thread Yeti
. 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-29 Thread Yeti
it will replace whatever properties were installed by parent classes or interfaces. Why this isn't written anywhere... sigh Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: Problem with gtk_label_set_text

2007-06-28 Thread Yeti
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: Problem with gtk_label_set_text

2007-06-28 Thread Yeti
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 week. Yeti

Re: geometry hints screwing up window sizes

2007-06-28 Thread Yeti
); g_print(Press 0-9 to resize me.\n); gtk_widget_show_all(window); gtk_main(); return 0; } === Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list

Re: Designing objects with GObject

2007-06-28 Thread Yeti
in object B. Is there any way to keep them in interface C and don't do any ugly tricks to go around GObject rules? I really don't want to implement separately for both objects. You will use g_object_class_override_property() anyway. Doesn't it allow to make a READABLE proeprty READWRITE? Yeti

Re: motion-notify-event works only once

2007-06-27 Thread Yeti
; } 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 -- not to get any further events until you call gdk_window_get_pointer(). Yeti -- http://gwyddion.net

Re: Gtk with .po files

2007-06-26 Thread Yeti
, 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/gtk-app-devel-list

Re: FW: Text wrapping along with ellipsizing

2007-06-26 Thread Yeti
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 something like that. Yeti -- http://gwyddion.net

Re: Getting a GDK_CONFIGURE event from a GtkImage

2007-06-26 Thread Yeti
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 they are equal? Yeti -- http

Re: macro IS_xxx

2007-06-24 Thread Yeti
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
gtk_tree_view_set_model() and do not care about them any more as they will be destroyed automatically once nothing needs them. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo

Re: GtkTreeView in a Scrolled Window

2007-06-20 Thread Yeti
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-app-devel-list@gnome.org http

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

2007-06-20 Thread Yeti
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_toggled() delcaration. Yeti -- http://gwyddion.net/ ___ gtk

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

2007-06-19 Thread Yeti
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://gwyddion.net

Re: multi thread app and often variable accessing

2007-06-08 Thread Yeti
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: Buttons in groups

2007-06-07 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://gwyddion.net

Re: Buttons in groups

2007-06-07 Thread Yeti
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 toolbar... Yeti -- http://gwyddion.net

Re: Setting G_SLICE=always_malloc at runtime

2007-06-07 Thread Yeti
(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 the variable before that. Yeti -- http://gwyddion.net

Re: Segmentation fault while reading from entry.

2007-06-03 Thread Yeti
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/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: gtk+ about dialog doesn't close

2007-06-02 Thread Yeti
) 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 simplier than GtkAboutDialog. Yeti -- http

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 (mem_map), expose_event,(GtkSignalFunc

Re: Virtual list boxes (using GtkTreeView or other)

2007-06-01 Thread Yeti
-- 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
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.gnome.org/mailman/listinfo/gtk-app

Re: Shared or dynamic?!

2007-05-30 Thread Yeti
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: Window receiving button-release-event

2007-05-30 Thread Yeti
TRUE the event is considered handled and the remaining handlers are never 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: How to add stuff to treeviews??

2007-05-29 Thread Yeti
. 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-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: GdkImage from GdkPixbuf

2007-05-29 Thread Yeti
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.net/ ___ gtk-app-devel-list mailing

Re: Problem with gtk drawing primitive

2007-05-28 Thread Yeti
, GTK_SHADOW_OUT, NULL, w, NULL, points, 8, TRUE); Please could anyone help me with this problem? I suspect blankstyle = gtk_style_attach(blankstyle, w-window); is missing. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list

Re: Access to a single character in a button label

2007-05-26 Thread Yeti
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-devel-list

Re: How to build a GtkTree?

2007-05-26 Thread Yeti
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: GtkTreeView: Simple application

2007-05-25 Thread Yeti
); It's not being listed in the treeview after building / running the code. Probably a consequence of the problem above -- the tree view has not actually got anything to display. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app

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

2007-05-23 Thread Yeti
packaging). The worst problem is that the resulting binary will appear to work properly in your setup, because that's where you created it. And of course Tor's point about hardcoded paths still apply. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing

Re: HELP: GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

2007-05-23 Thread Yeti
backtrace You can also make GLib abort (and dump core) on CRITICAL or WARNING messages using g_log_set_always_fatal() or more flexibily by setting the G_DEBUG environment variable (see GLib reference documentation). The first two points apply generally, not just to Gtk+ programs. Yeti -- http

Re: HELP: GLib-GObject-WARNING **: instance of invalid non-instantiatable type `(null)'

2007-05-23 Thread Yeti
the holder of the other refences expected, but with luck, where the memory got freed too soon is visible from valgrind's output. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman

Re: menuitem activate

2007-05-23 Thread Yeti
item click. gtk_widget_activate(item); or gtk_menu_item_activate(item); 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: menuitem activate

2007-05-23 Thread Yeti
. you pass the menu item object. No path, name, or anything. The item itself (that's menuitem here). 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: menuitem activate

2007-05-23 Thread Yeti
for a few years and have to ask dumb questions for a while. Please make your compiler more paraonic in that case, at least -Wall -Werror-implicit-function-declaration for gcc. Yeti -- http://gwyddion.net/ ___ gtk-app-devel-list mailing list gtk-app-devel

Re: menuitem activate

2007-05-23 Thread Yeti
the parenthases? Back to my original question. For instance tw-menuitem.file. Any of them. All are menu items. 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

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

2007-05-23 Thread Yeti
-gif.so Instead of: /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-gif.so And the dot is exactly what? The current directory? Does the library know the directory it was loaded from? Should libraries break when symlinked? Yeti -- http://gwyddion.net

Re: menuitem activate

2007-05-23 Thread Yeti
can employ a more general callback mechanism, but this should be sufficient in your case. 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

  1   2   3   4   5   >