Re: I thought that gtkCanvas would be in gtk 2.8?

2005-07-22 Thread Olexiy Avramchenko
Owen Taylor wrote: I think one of my papers on Cairo/GTK+ said that a cairo-based Canvas was a future possibility, but it was never planned for 2.8. Is anybody working on something like that now ? Olexiy ___ gtk-devel-list mailing list

Re: GTK+ 2.8.0 released

2005-08-14 Thread Olexiy Avramchenko
Matthias Clasen wrote: GTK+ 2.8.0 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.8/ It would be fine to have the latest pango and atk there. Or links to them. Olexiy ___ gtk-devel-list mailing list gtk-devel-list@gnome.org

Re: Announcing: Project Ridley

2005-08-22 Thread Olexiy Avramchenko
Gustavo J. A. M. Carneiro wrote: On Mon, 2005-08-22 at 16:10 +0200, Christian Neumair wrote: Am Montag, den 22.08.2005, 13:37 +0200 schrieb Rodrigo Moya: there is no reason to force us to do GNOME 3.0, but since many GNOME libraries will be disappearing with Ridley, we might want to call it

Re: Announcing: Project Ridley

2005-08-23 Thread Olexiy Avramchenko
What about XML support ? Now we have: - basic XML subset in GLib - libxml2 - expat Moving all XML features to GLib doesn't look good, neither looks good having three separate libraries with the same functionality. Olexiy ___ gtk-devel-list

Re: ali:6128): Gtk-CRITICAL **: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZ

2006-01-30 Thread Olexiy Avramchenko
On 1/30/06, Faqeer ALI [EMAIL PROTECTED] wrote: ... gtk_widget_set_events (Button[j][i], GDK_EXPOSURE_MASK|GDK_BUTTON_PRESS_MASK); ... Warnings in my code/ (ali:6128): Gtk-CRITICAL **: gtk_widget_set_events: assertion `!GTK_WIDGET_REALIZED

Re: GEvent - Proposal for a new threading structure for GLib

2006-11-18 Thread Olexiy Avramchenko
On 11/17/06, Matthew Barnes [EMAIL PROTECTED] wrote: ... I've attached a patch that implements and documents GEvent. It closely mimics the Python class, so I won't bother describing the API here. Is GCond not suitable for this purpose? Olexiy ___

Re: gtk/gdk equivalent of XPutImage ()

2006-11-26 Thread Olexiy Avramchenko
On 11/24/06, Prasanna Kumar K [EMAIL PROTECTED] wrote: Hi, I want to substitute XPutImage() with some equivalent gtk/gdk API in my application. It is not neccessary that gtk/gdk should have an exact match for XPutImage(). Any 2 or more combinations of gtk/gdk API's can solve the problem..

Re: button label problem

2002-08-13 Thread Olexiy Avramchenko
[EMAIL PROTECTED] wrote: hi all . how can we change the label of button after clicking it ... i mean..i have set one label for the buttton..and i want to change it when i click on the button... plz help... thanx... just do smth like this: --- void

Re: button label problem

2002-08-13 Thread Olexiy Avramchenko
[EMAIL PROTECTED] wrote: hi.. i did like it..but i got undefined reference of gtk_button_set_label then what should i do thanx... Oops, you're using gtk+-1.2, the gtk_button_set_label function is from gtk+-2.0 library. Try this: ---

Re: cant change font

2002-08-15 Thread Olexiy Avramchenko
Garrone, Peter wrote: I parse the following resource file from my application. #-- style all { font = -*-helvetica-medium-r-normal--17-*-*-*-*-*-*-* fg[NORMAL] = {0,0, 1.0} } widget_class * style all

Re: how do i use a mutex

2002-08-15 Thread Olexiy Avramchenko
simith nambiar wrote: hi there, iam using 2 gtk_timeout function one that creates Jpeg images from a webcam, and another to transmit it how do i mutex it in Gtk please help! Regards, Simith If you've a single-threaded application you need not to use mutex. Take a look at g_mutex*

question about writeable colors in gdk

2002-08-16 Thread Olexiy Avramchenko
Hello, I can allocate a writeable color/s via gdk_colormap_alloc_color/s . Can someone tell me the right way to change it value/s after ? All functions I've found (and used) are deprecated in gtk+-2.0: gdk_colors_store, gdk_color_change, gdk_colormap_change . Olexiy

question: colors, visuals, please help to understand

2002-08-20 Thread Olexiy Avramchenko
Hello, I need to allocate colors in PseudoColor and change their values in runtime (gtk+-2.0). GDK allows me to allocate a writeable colors in colormap via gdk_colormap_alloc_colors. But the problem is all functions I've found are deprecated: gdk_colors_store, gdk_color_change,

Fonts: 5 ways to change the gtk+-2.0 text label font

2002-08-21 Thread Olexiy Avramchenko
/* A little demo how to change the default font of label in 5 ways. Be aware: a couple of bugs can be found here. Olexiy Avramchenko */ #include gtk/gtk.h /* gtk_widget_modify_font This's the simpliest way to change the label's font :) */ static void font_set_way0(GtkEntry

Re: How tell atk 1.0.3 or pango 1.0.4 where my glib 2.0.6 is located?

2002-08-21 Thread Olexiy Avramchenko
Ensure the pkg-config knows about glib-2.0: run manually 'pkg-config glib-2.0 --cflags' - if it will fail add to PKG_CONFIG_PATH path to glib-2.0.pc file. You can find it by running 'find / -name 'glib-2.0.pc' -print'. So you can do smth like this (bash): 1. PKG_CONFIG_PATH=$PKG_CONFIG_PATH:`find

Re: why cannot it find the library of gtk2.0.6?

2002-08-22 Thread Olexiy Avramchenko
xufeng lee wrote: *Ö÷Ìâ:* why cannot it find the library of gtk2.0.6? *ÊÕ¼þÈË:* [EMAIL PROTECTED] I just installed gtk+2.0.6,then I try the following command: $gcc hellow.c -o hellow `pkg-config --cflags --libs gtk+2.0` it seem ok,then I try : $hellow and error occured:error while

Re: question: colors, visuals, please help to understand

2002-08-22 Thread Olexiy Avramchenko
Alexander Chemeris wrote: Tuesday, August 20, 2002, 2:37:25 PM, you wrote: I need to allocate colors in PseudoColor and change their values in runtime (gtk+-2.0). GDK allows me to allocate a writeable colors in colormap via gdk_colormap_alloc_colors. But the problem is all functions I've

Re: default font.

2002-08-27 Thread Olexiy Avramchenko
peter garrone wrote: I am having trouble setting the font for my application, just having a different font for a GtkLabel. I can change the color using a resource file style, but not the font. Get a look to the message I've posted some days ago, subject Fonts: 5 ways to change the gtk+-2.0

Re: dateedit color change problem...

2002-08-27 Thread Olexiy Avramchenko
[EMAIL PROTECTED] wrote: hi.. how we can change the color of date edit component. i tried like it- gdk_color_parse (light green, color); style_default=gtk_widget_get_default_style(); style=gtk_style_copy(style_default); style-base[GTK_STATE_NORMAL] = color;

Re: Can Anybody give me a code example of Changing font for TextView?

2002-08-27 Thread Olexiy Avramchenko
. Olexiy Avramchenko */ #include stdio.h #include gtk/gtk.h typedef struct __callback_params { GtkTextView *tv; GtkFontSelectionDialog *fsd; } CALLBACK_PARAMS; static void set_font(GtkButton *button, CALLBACK_PARAMS *params) { char*s; PangoFontDescription

Re: GTK Problem

2002-08-28 Thread Olexiy Avramchenko
James Jensen wrote: Hi, everyone. I'm writing an open-source text editor with wGLADE and Dev-C++ w/DevEx (which provides the GTK libs) named Free Notepad. I'm having trouble with opening files. What happens is that when I click Open File under the File menu, a GTK file_selection window

Re: How to change a cursor style in GtkTextView?

2002-08-30 Thread Olexiy Avramchenko
mili wrote: Hello, Everyone I want to change a cursor in a GtkTextView, such as in xemacs, changing to more pixel width and color to red. Can I? Hello, You can create your own cursor with gdk_cursor_new_from_pixmap and set its fg and bg colours:

Re: Setting Drawing Area Background Color

2002-08-30 Thread Olexiy Avramchenko
Fiorillo.Paul wrote: Hello all, How do I set the background color of a DrawingArea? You can use gtk_widget_modify_base() function: --- GdkColor bg; bg.red = 5; bg.green = 4; bg.blue = 3; gtk_widget_modify_base(GTK_WIDGET(drawing_area), GTK_STATE_NORMAL, bg); ---

Re: Oh, I am Sorry. (Re: How to change a cursor style in GtkTextView?)

2002-08-31 Thread Olexiy Avramchenko
mili wrote: Hello, Olexiy I am sorry I had not express myself very well. I mean the blinking cursor of TextView, not the cursor of a mouse. In fact, I feel the bar-cursor in TextView is two thin, and I want to make it red color to attract my attention. So it must can change the height

why there's no public gtk_rgb_to_hsv/gtk_hsv_to_rgb ?

2002-09-05 Thread Olexiy Avramchenko
Hello, I wonder why GTK has no public gtk_rgb_to_hsv functions ? Of course, it is not usually need but library uses them internally so why not to give the public access ? Olexiy ___ gtk-list mailing list [EMAIL PROTECTED]

Re: gtk_signal_connect_object

2002-09-09 Thread Olexiy Avramchenko
Shadia Mikhael wrote: Hello, i'm still a beginner in gtk...and i'd like to ask for some help. I'm trying to create a simple window which enables the user to select a file he/she wants to open..however i'm getting an error while compiling in the line which ensures that the dialog box is

Re: signal

2002-09-09 Thread Olexiy Avramchenko
Seisdedos Nuñez, Monserrat wrote: Hello everybody: i have a toggle_button callback connected to the toggled event, in a particular moment i don't want it to be call, how can i do it? Hello, g_signal_handler_block() - will block your handler until g_signal_handler_unblock().

Re: PKG_CONFIG_PATH has no effect

2002-09-09 Thread Olexiy Avramchenko
Michael Obster wrote: Hi, I've a problem with compiling gtk+-2.0.6. Configure is always complaining about a missing glib-2.0. But it is installed in /usr/local. One thing perhaps I should say is, that I have also installed gtk+-1.x and glib-1.x in /usr. I looks for me that the damn

Re: PKG_CONFIG_PATH has no effect

2002-09-09 Thread Olexiy Avramchenko
Olexiy Avramchenko wrote: Michael Obster wrote: Hi, I've a problem with compiling gtk+-2.0.6. Configure is always complaining about a missing glib-2.0. But it is installed in /usr/local. One thing perhaps I should say is, that I have also installed gtk+-1.x and glib-1.x in /usr. I

Re: signal

2002-09-09 Thread Olexiy Avramchenko
Seisdedos Nuñez, Monserrat wrote: ok, i did: save_exclude_cbt = gtk_check_button_new_with_label (_(Excluir Lista)); gtk_signal_connect (GTK_OBJECT (save_exclude_cbt), toggled, GTK_SIGNAL_FUNC (on_save_exclude_cbt_toggled), boot_exclude_vbox); Hmm,

Re: Configure errors with atk 1.0.3 and Pango 1.0.4

2002-09-09 Thread Olexiy Avramchenko
James Vega wrote: I configured and installed glib 2.0.6 with --prefix=/usr. Now when I try to configure atk (with --prefix=/usr) and pango (with --prefix=/usr), I get the following error: checking for GLIB - version = 2.0.0... no *** Could not run GLIB test program, checking why... *** The

Re: problems using gtk 2

2002-09-11 Thread Olexiy Avramchenko
Guillem Palou wrote: Hi, I hav downloaded the gtk 2.0.6 and i managed to install it without any problem. But after, when I run the gtk-config command, the computer can't find it, and I don't know why, so if you know what's the problem, tell it to me please. I'm running under a Suse

Re: GdkPixmap and configure_event

2002-09-12 Thread Olexiy Avramchenko
Reham Younis wrote: Hi, I am working on a project in which we are trying to upgrade its old GUI based on x lib pure calls to GTK (gtk-1.2). The problem is that I am creating a gtk drawing area which is used for drawing with x calls drawing functions. Things are working fine,except for GdkPixmap.

Re: setting initial state of radio buttons not working

2002-09-17 Thread Olexiy Avramchenko
Hello, Brandon I'm using gtk+-2.0 and radio/toggle buttons stuff works fine as for me. Can you post the piece of code ? Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Problem with GTK+, installing?

2002-09-17 Thread Olexiy Avramchenko
Ralph M. Los wrote: Hi, I'm new to linux so when I installed my Mandrake system, I was expecting somewhat of an easier time than this. Essentially, what has happened is that I installed gtk+-1.2.9 (from source via the make utilities) and glib-1.2.8 as well (necessary!). I am

Re: Using Gtk+ with XvShmPutImage()...

2002-09-18 Thread Olexiy Avramchenko
Duncan Chang wrote: Hello all: Now i am coding a application with Gtk+, but i need the low level x-lib API XvShmPutImage() to communicate to driver. I done with create another window(XCreateWindow()) to make XvShmPutImage() work, but in this way the dummy window that created from

Re: Keep user on a window

2002-09-18 Thread Olexiy Avramchenko
CAVEY GERARD wrote: Hello Does someone know how to make a window really modal ; by really modal i mean that i want to make user unable to click on a background window, is there any quite simple solution to realize such a thing gdk_pointer_grab can force the pointer be inside your window,

Re: stupid question regarding pixmaps and reference counts

2002-09-19 Thread Olexiy Avramchenko
NavEcos wrote: How do I get the reference count of a GdkPixmap? I know how to increment and decrement the count, but not how to get the actual value. I tried casting it to a GTK_OBJECT but it says it's an invalid pointer. Any help? Hello (it's about gtk+-2.0), It says right, cause GObject -

Re: drawing graphics

2002-09-19 Thread Olexiy Avramchenko
CAVEY GERARD wrote: Hello My app uses a GtkDrawingArea to display some data (lines texts) drawn with gdk drawing primitives. the main drawing function is linked with the expose_event of my drawing area gtk_signal_connect (GTK_OBJECT (drawingarea1), expose_event,

Re: drawing graphics

2002-09-19 Thread Olexiy Avramchenko
Ian Britten wrote: In addition to using a background pixmap (as suggested), I also 'attach' the pixmap to the window (using gdk_window_set_back_pixmap()). This way, you never have to deal with expose events (unless you are drawing stuff that isn't in your background pixmap). All in all, this

Re: Disable GtkEntry popup menu

2002-09-19 Thread Olexiy Avramchenko
Matteo Frigerio wrote: Hello, i have a problem: i want to change the popup menu displaied by the GtkEntry with a my personal popup menu. Connect handler to populate_popup GtkEntry signal. Your callback will get the pointer to popup menu before it will be shown, you can add everything you

Re: drawing graphics

2002-09-20 Thread Olexiy Avramchenko
CAVEY GERARD wrote: thus i think it s a bit dirty... because i don t clear the previous drawing area back buffer!! how can i get a pointer to that back buffer i know i could use a global variable but... ; i didn t find gdk_window_get_back_pixmap :P any idea? In gtk+-2.0

Re: drawing graphics

2002-09-20 Thread Olexiy Avramchenko
CAVEY GERARD wrote: yo all About back pixmap i have a question, i did all u told and now it works like a Ferrari engine :D however each time i want to set a new back pixmap i write these few lines GdkPixmap *pixmap = NULL;

Re: pthreads + gtk

2002-09-20 Thread Olexiy Avramchenko
NavEcos wrote: 1) I have some experience with X11 coding, and it looks like I need to send the GTK equivalent of XSync, but I cannot find it in the documentation. Hello, gdk_flush() does XSync(display, FALSE). Olexiy ___ gtk-list mailing list

Re: pthreads + gtk

2002-09-20 Thread Olexiy Avramchenko
NavEcos wrote: I appreciate the tip, but then I get the following: $ gcc thread.cpp `pkg-config --cflags --libs gtk+-2.0` -lpthread produces /tmp/ccwLDn5O.o: In function `main': /tmp/ccwLDn5O.o(.text+0x18c): undefined reference to `g_thread_init' collect2: ld returned 1 exit status So what

Re: pthreads + gtk

2002-09-20 Thread Olexiy Avramchenko
Olexiy Avramchenko wrote: Use the following: gcc thread.cpp `pkg-config --cflags --libs gtk+-2.0 gthread` Oops, my fault, use gthread-2.0 instead of gthread: gcc thread.cpp `pkg-config --cflags --libs gtk+-2.0 gthread-2.0` Olexiy ___ gtk-list

Re: How do I left justify

2002-09-25 Thread Olexiy Avramchenko
Billy Patton wrote: How do I left justify objects placed into a list? Snippett: label = gtk_label_new(cp); gtk_misc_set_alignment(GTK_MISC(label), 0,0.5);/* aligns your label to left of the container */ Hello, Billy There're 2 kinds of alignment for GtkLabel:

Re: How to redraw the application window of a multithreaded GTK app?

2002-09-25 Thread Olexiy Avramchenko
CAVEY GERARD wrote: hello first i think that 15 fps is too much for gtk You are wrong. It depends on hardware you're using and mostly on the task you're doing (algorithm, frame size, video mode, how the data passed in/out, etc). Gtk is a widgets toolkit. It eats (generally) more CPU time and

Re: How to redraw the application window of a multithreaded GTK app?

2002-09-25 Thread Olexiy Avramchenko
Joerg Vogler wrote: Hello, I'm developing a multithreaded application based on GTK+ 1.2. The main thread creates the application window and calls gtk_main() then. The application window comprises a menu, a drawing area and a status bar. The drawing area is intended to display a GdkImage

Re: How to redraw the application window of a multithreaded GTK app?

2002-09-26 Thread Olexiy Avramchenko
Joerg Vogler wrote: From: Olexiy Avramchenko [mailto:[EMAIL PROTECTED]]Sent: Wednesday, September 25, 2002 12:05 PM3. Set the shared pixmap as the background of the drawing area window toavoid handling "expose" event manually. There was a big thread "drawinggraphics"

Re: Multi-threading portability

2002-10-02 Thread Olexiy Avramchenko
Jean-Yves Lefort wrote: Hi all, Please consider the attached C source. It runs fine on FreeBSD, but freezes on Linux. gtk_dialog_run() calls a recursive main loop, but I don't know how to interpret this fact to solve my problem. The workaround I use actually is to simply remove the

Re: How to get the initial position?

2002-10-02 Thread Olexiy Avramchenko
Duncan Chang wrote: Hi all: As we know we can get the position from : gdk_window_get_position(), but why I always got x=0 and y=0 for a dialog widget that I created initialized. But from the widget on screen, it was not at left-top corner obviously, why?? Because the dialog

Re: Urgent help on GValue

2002-10-04 Thread Olexiy Avramchenko
Matteo Frigerio wrote: Hello, probally for many people this is a stupid question but i can't understand the way to get the cursor position in a selectable label (under gtk-2.0). I use the g_object_get_property(G_OBJECT(mylabel), cursor_pos, mygvalue); in the focus-in event but don't work. I

Re: GdkPixmap and GtkDrawingarea

2002-10-16 Thread Olexiy Avramchenko
beer wrote: I try to draw something by use Pixmap and Drawing area but I get some problem. What is cause of problem? How can I fix it? Please tell me, thank you very much. Poblem is 1) Gdk-CRITICAL **: file gdkdraw.c: line 90 (gdk_draw_rectangle): assertion `gc != NULL'

Re: Releasing client-side pixmaps

2002-10-23 Thread Olexiy Avramchenko
Dag Helstad wrote: Hi, I'm trying to minimize the memory usage of a GTK application which uses a GtkPixmap to show a background pixmap. The X server keeps a server-side copy of the pixmap, but it seems a client-side copy is kept in my application. X pixmaps unlike the X images are always

Re: difference b/t g_free g_object_unref

2002-10-18 Thread Olexiy Avramchenko
Hello, g_free() frees the memory allocated by g_malloc() function, like free() frees the memory allocated by malloc() in stdlib. g_object_unref() is completely different. Its the piece of glib object system. Each object derived from GObject has a special field: reference counter.

Re: Gtk 1.2 gtk_menu_get_title ()

2002-10-22 Thread Olexiy Avramchenko
amitjain wrote: Hi All I am using Gtk 1.2. I want to get title of Gtk Menu so is there any function for getting it. we know about gtk_menu_set_title () , but couldn't find like gtk_menu_get_title (); so if anybody knows how to change GtkMenu title please let me know. You can use this to get the

Re: Very simple question

2002-10-25 Thread Olexiy Avramchenko
amitjain wrote: Hi All !!! i have a window in that i have two labels in a hbox. i wnat that these labels should be resize whenever window resize i.e. i dont want to fix the size of labels. it should change dynamicly whenever window resizes How did you pack them into hbox ? There're *expand* and

Re: URGENT : GtkStatusBar resize

2002-11-04 Thread Olexiy Avramchenko
Matteo Frigerio wrote: Hello, i need to show a status bar without the SYMBOL for resize (oblique line at bottom left). It's possible ? Use *gtk_statusbar_set_has_resize_grip()* function: http://developer.gnome.org/doc/API/2.0/gtk/gtkstatusbar.html#GTK-STATUSBAR-SET-HAS-RESIZE-GRIP Just pass

ftp LATEST-GTK+ file typo

2002-11-04 Thread Olexiy Avramchenko
Here's what I see on ftp://ftp.gtk.org: ftp://ftp.gtk.org/pub/gtk/v2.0/LATEST-GTK+-2.0.6 Olexiy ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Problem with Glib 2.0.6 on redhat 7.3

2002-11-05 Thread Olexiy Avramchenko
Timothy Venn wrote: Hi, I have a problem with glib 2.0.6. After compiling the glib 2.0.6 source and doing a make install there are not problems. Once I try to compile gtk+ the ./configure returns the following error. The pkg-config program returned version 2.0.6 of Glib but found 2.0.1 How do

Re: Releasing client-side pixmaps

2002-11-05 Thread Olexiy Avramchenko
Dag Helstad wrote: Hi, a while ago I posted a question regarding the client-side memory usage when using GtkPixmap. I got a couple of answers (thanks!!!) which told me that no client-side copy is kept of the pixmap. I have now performed some tests, which show that my Linux/GTK application

Re: Bug in gtk+-2.0.7?

2002-11-06 Thread Olexiy Avramchenko
James Su wrote: I just tried gtk+ 2.0.7, but gtk-demo cannot run, following message appeared: gtk-demo: relocation error: /usr/lib/gtk-2.0/2.0.0/loaders/libpixbufloader-gif.so: undefined symbol: CHECK_LZWP_SP Yes, I tried it with my install and it failed too... I see this also when run

Re: How to get the pixmap's position?

2002-11-08 Thread Olexiy Avramchenko
anukeey wrote: Hi all: I had designed a GtkPixmap widget, and set eventbox for the pixmap widget, now I captured the button ress event when user clicked the pixmap to load another pixmap. As we know, the pixmap widget is rectangle shape, but the pixmap that we loaded may be polygon shape, so

Re: dhirendra(some doubts of GTK+)

2002-11-08 Thread Olexiy Avramchenko
dhirendra wrote: sir/Madam, I am working with the interface of messanger like yahoo... but faccing some problem to complete this if you clear my doubts then I will really be greatfull to you... because this i am doing to finish my mini project to complete my study carriculam... 1) how to

Re: GTK 1.2 and 2.0 installed !!!

2002-11-08 Thread Olexiy Avramchenko
Béryl DAVID wrote: Sorry for my poor english (i'm french) I've just upgraded my Mandrake 8.2 to 9.0. When I want to install a RPM archive (D4X) an error message tell me that I've the wrong version of GTK (1.2.10) instead of the 2.0.6. But the 2.0.6 is installed on my system... and the 1.2.10

Re: GTK 1.2 and 2.0 installed !!!

2002-11-08 Thread Olexiy Avramchenko
Béryl DAVID wrote: Hem...This is not the problem. Both GTK+1.2.10 and GTK+2.0.6 are installed on my system !! That's ok. They can co-exist nicely. But the v1.2.10 only is recognized by the programs that use GTK+ (like Sylpheed). I want to install Download accelerator for X V2.4 (write for

Re: GTK+-2.0.8 released

2002-11-10 Thread Olexiy Avramchenko
Owen Taylor wrote: GTK+-2.0.8 is now available for download at: ftp://ftp.gtk.org/pub/gtk/v2.0/ It would be nice to have a patch against gtk+-2.0.7 on ftp.gtk.org ;) Thanks, Olexiy ___ gtk-list mailing list [EMAIL PROTECTED]

Re: gtk+ problem

2002-11-14 Thread Olexiy Avramchenko
Franck wrote: I am under mandrake 9 and when i try to compil gtk+-2.0.8, i get the error message 'no makefile found'. What's wrong ? Hey, you have to run 'configure' first. Have you read 'README' file coming with source ? Anyway: cd gtk+-2.0.8 ./configure make su -l cd i dont know where you

Re: gtk+ problem

2002-11-14 Thread Olexiy Avramchenko
Olexiy Avramchenko wrote: Franck wrote: I am under mandrake 9 and when i try to compil gtk+-2.0.8, i get the error message 'no makefile found'. What's wrong ? Hey, you have to run 'configure' first. Have you read 'README' file coming You have to read 'INSTALL' file, sorry. Olexiy

Re: Can anybody give me an example of scrolling of GtkTextView?

2002-11-16 Thread Olexiy Avramchenko
-config --cflags --libs gtk+-2.0 gthread-2.0` logger.c -o logger Olexiy Avramchenko */ #include stdio.h #include stdlib.h #include gtk/gtk.h static int threads_count=0; /* Simple thread function. It generates 1000 lines of text and puts their into GtkTextView widget

Re: gtkdrawingarea mouse signals

2002-11-16 Thread Olexiy Avramchenko
suzan Allen wrote: Hi everyone, I am new to this list and to gtk so please be patient with me. My code contains a gtk window that contains a gtkdrawing area.I know how to draw on that area. But if I want to select a certain area within this drawing area to apply a certain action on it. How do

Re: locale problem with GTK 2

2002-11-16 Thread Olexiy Avramchenko
Carlos wrote: Each time I try to write french special characters (like é à ç ) with any GTK2 app, this make it crash... I think this issue come from my locale. Where can I find the locale configuration ? How can I fix my locale ? GTK+-2.0 uses utf-8 only. So you have to set your locale to

Re: drawing area transparency

2002-11-16 Thread Olexiy Avramchenko
Blowfish wrote: i've figure out that setting back pixmap with NULL filename will make the drawing area transparent... but how can i update the transparency when i move my window ??? As Paul said there's no nice way get transparent window. Search this list, there were messages about this.

Re: Why this comportment ?

2002-11-21 Thread Olexiy Avramchenko
lomba wrote: Hello, i've a big problem with gtk... I create a window, with many elements and a simple button which has to destroy the window when I click on it. I use a gtk_signal_connect with the fonction _widget_destroy and the name of the window in parameter. Unfortunately, this is my button

Re: drawing area to image file ???

2002-11-21 Thread Olexiy Avramchenko
42052670 wrote: Can I save or snap my Drawing Area into image file such as JPG, GIF? /* VERY SIMPLIFIED and UNTESTED example */ static void save_2_jpeg(GtkWidget *area) { GdkPixbuf *pixbuf; pixbuf = gdk_pixbuf_get_from_drawable( NULL,

Re: Creating a new widget after the program has started.

2003-08-14 Thread Olexiy Avramchenko
J. Davison de St. Germain wrote: Hi, In our application, we sometimes create new widgets after the program is up and running. (These new widgets are GL Windows.) However, when we try to bind events to them (eg: have them catch mouse clicks), they don't respond. Does anyone know if this is

Re: Changing [entire] background of a GtkTextView

2003-08-31 Thread Olexiy Avramchenko
Vadim Berezniker wrote: I want to change the entire background of a GtkTextView to the background of its parent container. Using Tags, I can only change the background of the parts of the view with text. Changing the background using the widget style has no effect. (The only thing that seems

Re: Compiling and Installing GTK+2.2

2003-09-02 Thread Olexiy Avramchenko
[EMAIL PROTECTED] wrote: I am trying to install GTK+2.2.1 on a Redhat 9.0 system. I have sucessfully installed Glib, and Pango. Each configured and installed with no errors or warnings. However when I try to ./configure GTK+2.2.1 I get an error stating the following: checking Pango flags...

Re: Fw: Changing the font of an gtkbutton label

2003-09-02 Thread Olexiy Avramchenko
Luiz Rafael Culik Guimaraes wrote: Dear friends How to change the font of an button label this is an generic piece of code i use to change font for labels on menus and gtklabels PangoFontDescription *font_desc = pango_font_description_from_string(prop-value.font); GtkRcStyle

Re: gtk+-2.2.0 ./configure error about pango 1.2.0

2003-10-16 Thread Olexiy Avramchenko
busmanus wrote: When I am trying to configure the source code of gtk+-2.2.0, I get the following error: checking X11/extensions/XShm.h... yes checking Pango flags... -I/usr/local/include/pango-1.0 -I/usr/include/freetype2 -I/usr/X11R6/include -I/usr/local/include/glib-2.0

Re: gtk_notebook_page_num question

2003-10-20 Thread Olexiy Avramchenko
Brent Clements wrote: Ok, the api reference states this as the variables passed to gtk_notebook_page_num gtk_notebook_page_num(GtkNotebook *notebook, GtkWidget *child) What exactly is the child that needs to be passed to the function? This is the widget packed into notebook's tab via

Re: gtk+-2.2.0 ./configure error about pango 1.2.0

2003-10-21 Thread Olexiy Avramchenko
busmanus wrote: Hi, I downloaded and compiled pango-1.2.5, but it didn't help in itself, althogh I haven't tried out every possibility with it yet. I still have a suspicion that it's really Xft that I messed up things with. I'd like to ask, what version of fontconfig and Xft is considered to

gtk-install-list ?

2003-10-22 Thread Olexiy Avramchenko
Hello, Maybe it's time to launch gtk-install-list ? I hope that: 1. It will be easier for user to find info/ask a question about compiling GTK. 2. It will give a chanse for another user to filter messages about pkg-config,configure,ld.so.conf,etc out. Olexiy

Re: Dynamically load widgets in a window

2003-10-22 Thread Olexiy Avramchenko
Joe Scaduto wrote: Hey, I am designing an application whose main window is split into 2 horizontal panes. The left most pane is a column of buttons which represent services of my application. And the right most pane is a scrolled window. What I wish to do is when a user clicks a button the

Re: gtk-install list

2003-10-24 Thread Olexiy Avramchenko
Owen Taylor wrote: On Thu, 2003-10-23 at 08:23, kameron cole wrote: 3) these instructions need to be updated/improved - and, what better way to do this than collecting experience through the archives of a gtk-install list? There is a huge amount of archive experience already from this

gtk/glib/pango spec file

2003-11-03 Thread Olexiy Avramchenko
Hello, I'm wondering why there're no spec[.in] files in gtk, pango and glib tarballs ? Many libs/apps in Gnome have it (including atk). Should I check CVS for them or there's a reason for not including/sharing such files ? Olexiy ___ gtk-list

Re: Slackware 9.1 missing GTK 2.0?

2003-11-14 Thread Olexiy Avramchenko
David Topper wrote: I thought Slack 9.1 had gtk 2.0? I'm pretty sure 9.0 did. But when I look in /usr/lib I only see: pawn:/usr/lib# ls libgtk* libgtk-1.2.so.0libgtk.so libgtkhtml-2.so libgtk-1.2.so.0.9.1libgtkhex.a libgtkhtml-2.so.0 libgtk-x11-2.0.la

Re: Your opinion about how to get data from dialog box

2003-11-14 Thread Olexiy Avramchenko
Harobed wrote: Hello, I would like know your opinion about one choice whose for me is without response. For you, what is the best code design to use when you make a dialog box. More specify about how get the data ? For me, I see 3 solutions : 1 - The dialog box handle directly the data when the

Re: GtkTree in testgtk

2003-11-14 Thread Olexiy Avramchenko
Igor Gorbounov wrote: There is a testgtk demo program from gtk+-2.2.4. And it shows a Gtktree with lines between nodes. Who knows how it was done? I don't know where the sources are. Igor Gorbounov As I can guess you're talking about deprecated GtkTree widget (testgtk tree menu item,

Re: GtkTree in testgtk

2003-11-14 Thread Olexiy Avramchenko
Igor Gorbounov wrote: Yes, gtk_tree_set_view_line() is marked as depricated, but what came instead of it? It looks very nice... Igor Gorbounov GTK+-2.0 has GtkTreeView widget for both lists and trees. Take a look at: http://developer.gnome.org/doc/API/2.0/gtk/TreeWidget.html Olexiy

Re: [Glade-users] creation evetn for a window

2003-11-14 Thread Olexiy Avramchenko
halil agin wrote: When a window is firstly constructed, does it generate a signal or event? if so, what is it? I want to make some initialization on my components in the window when it first created... I thought that when it firstly created, it will generate a signal or event and i want to learn

Re: Probelm with status bar....

2003-12-13 Thread Olexiy Avramchenko
Anish Chandran wrote: hi.. i created a status bar and i got an error like this can any one trace the problem. Gtk-CRITICAL **: file gtkstatusbar.c: line 207 (gtk_statusbar_push): assertion `context_id 0' failed. Hello, How do you call gtk_statusbar_push() ? You should call

Re: GtkScrolledWindow and GtkViewPort UI

2004-01-05 Thread Olexiy Avramchenko
Nazmul Hossain wrote: Could the space between the Scrolled Window and the Scroll bars in the two widgets be set to zero by default. This would display the widget as one entity rather that two or three different entity at this stage. As for GtkScrolledWindow - it has scrollbar_spacing style

Re: radio_button behavior with toggle_button style ?

2004-01-10 Thread Olexiy Avramchenko
Alain D'EURVEILHER wrote: Hi, Is it possible to make a group of toggle button, but behavioring as the radiobuttons ?? Here it is... : have for example 3 toggle_button and, pressing one down release (up) the other ones... Hello, here's one of the possible solutions: static void

Re: radio_button behavior with toggle_button style ?

2004-01-10 Thread Olexiy Avramchenko
Petr Tomasek wrote: On Sat, Jan 10, 2004 at 08:38:09AM +0100, Alain D'EURVEILHER wrote: Hi, Is it possible to make a group of toggle button, but behavioring as the radiobuttons ?? Here it is... : have for example 3 toggle_button and, pressing one down release (up) the other ones... I've

Re: gtk_widget_area - expose_event - problem

2004-01-10 Thread Olexiy Avramchenko
[EMAIL PROTECTED] wrote: Hi, I got from GDB this error for my application: Program received signal SIGSEGV, Segmentation fault. 0x0804b349 in expose_event (widget=0x80ac738, event=0x0, g=0x0) at graph_edit.c:248 248 gdk_draw_drawable (widget-window, (gdb) ... static gint

Re: GtkDrawingArea and mouse clicks

2004-02-15 Thread Olexiy Avramchenko
Jeff Abrahamson wrote: I have a Glade project that declares a GtkDrawingArea: child widget class=GtkDrawingArea id=network_map property name=width_request600/property property name=height_request200/property property name=visibleTrue/property

Re: how can I find out how big is the gtk shared library?

2004-02-17 Thread Olexiy Avramchenko
jiangyi178 wrote: Hi, May I ask you that on RH9, how can I find out how big is the gtk shared library? I looked in /usr/lib, all the gtk .so files are small. Or may be gtk+2 IS small? Hello, You saw symbolic links. Use following to find actual libraries from gtk2 package: wc -c `rpm -qil gtk2 |

Re: Hi

2004-02-18 Thread Olexiy Avramchenko
Zbigniew Wasik wrote: Already 4:33AM but I almost finished my small project (showing pictures) and do some drawings - jut for me - to learn GTK / GDK Only one problem - How I can draw e.g. RED rectangles on drawingarea I tried with GdkColor and GC but I all the time I get black rectangles. Also

  1   2   3   >