Re: gtk-list Digest, Vol 25, Issue 4

2006-05-03 Thread David Necas (Yeti)
On Wed, May 03, 2006 at 02:59:59PM +0100, Anees Shahul wrote: > I saw your reply.I looked at the GTK that came with my > package,I did not see any GTK1.2 folder.I do have few > question > > 1)How to uninstall the package that I installed > manually? make uninstall in the directories where you ru

Re: cannot execute GTK1.2 Application

2006-05-02 Thread David Necas (Yeti)
On Tue, May 02, 2006 at 04:11:54PM -0400, David Shaw wrote: > On Tue, 2006-05-02 at 17:12 +0100, Anees Shahul wrote: > > > I have installed GTK+-1.2.10 and GLIB1.2.10.I am using > > Fedora core2.0.When tried to run some sample > > applications,it came with an error "Cannot load shared > > librarie

Re: cannot execute GTK1.2 Application

2006-05-02 Thread David Necas (Yeti)
On Tue, May 02, 2006 at 05:12:32PM +0100, Anees Shahul wrote: > I have installed GTK+-1.2.10 and GLIB1.2.10.I am using > Fedora core2.0.When tried to run some sample > applications,it came with an error "Cannot load shared > libraries".Any help appreciated. I doubt this was the exact message you g

Re: scrolled window adjustment

2006-05-01 Thread David Necas (Yeti)
On Sun, Apr 30, 2006 at 10:56:45PM -0700, azam zare wrote: > I write a program in gtk+ that in part of that i need a scrolled window > widget on vbox and in the scrolled window should exit the Gtktext widget > as its child. I have problem with adjustment the window scroled window and >

Re: signal SIGSEGV, Segmentation fault for GtkTreeView

2006-04-28 Thread David Necas (Yeti)
On Fri, Apr 28, 2006 at 11:02:38PM +, DC A wrote: > I want to add pixbuf and a string in a single GtkTreeView cell. My code for > adding these to list store: > > > pixbuf = gdk_pixbuf_new_from_file("example.png", &error); > model = gtk_list_store_new(3, GDK_TYPE_PIXBUF | G_TYPE_STRING,

Re: Missing commas in the distribution of glib-1.2.10 and 1.2.9

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 03:08:33PM +0300, Kaya Onur wrote: > Yes I did. Yast opens in text mode and says. Error.. Following packages > haven't been found on the medium: gtk-devel. > (The installation DVD is in the drive) > > > > [EMAIL PROTECTED]:~> cat /etc/SuSE-release > > SUSE LINUX 10.0 (i586

Re: Missing commas in the distribution of glib-1.2.10 and 1.2.9

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 01:14:07PM +0300, Kaya Onur wrote: > > > > yast -i gtk-devel > There is no gtk-devel but gtk2-devel as far as I can see from yast system > update. Did you actually try the command? [EMAIL PROTECTED]:~> cat /etc/SuSE-release SUSE LINUX 10.0 (i586) OSS VERSION = 10.0 [E

Re: Missing commas in the distribution of glib-1.2.10 and 1.2.9

2006-04-21 Thread David Necas (Yeti)
On Fri, Apr 21, 2006 at 12:00:44PM +0300, Kaya Onur wrote: > It seems that lines 870,1037,1080 and of the gstrfuncs.c file in the > distribution of glib-1.2.10 and 1.2.9. are missing a comma in the parameter > list of g_warning() No, this use of __PRETTY_FUNCTION__ is broken with recent gcc

Re: Error building gtk 2.8.17

2006-04-18 Thread David Necas (Yeti)
On Wed, Apr 19, 2006 at 07:44:50AM +1000, Logan, David (SST - Adelaide) wrote: > > >Is LD_LIBRARY_PATH exported? > > Yes, and also PKG_CONFIG_PATH. I set them in my .bashrc Exporting helps, setting them in .bashrc does not help. Anyway, something has to be different in your shell and inside the

Re: Error building gtk 2.8.17

2006-04-18 Thread David Necas (Yeti)
On Wed, Apr 19, 2006 at 07:34:38AM +1000, Logan, David (SST - Adelaide) wrote: > Move to the gtk source directory and ./configure and make and > everything is fine. > > Do a sudo make install and the following error occurs : > > make install-data-hook > make[4]: Entering directory `/u2/src/gtk

Re: textview force refresh

2006-04-09 Thread David Necas (Yeti)
On Sun, Apr 09, 2006 at 07:05:38PM +0200, Nagy Zoltán Márk wrote: > howto force refresh textview widget? my problem is: > { > write text to textwiew (text); > //textview NOT shown my text > big_cpu_use_commands(); > } > > but the textview refreshed after the program finish the > big_cpu_use_comman

Re: How to convert ascii string to utf ?

2006-04-05 Thread David Necas (Yeti)
On Wed, Apr 05, 2006 at 09:10:02PM +0200, hm wrote: > > I`ve got a problem, when i`m tryin` to use gtk_text_buf_insert (). I don`t > know how to convert an ascii string, which is loaded from file, let`s say , > to a array : char c[255]; or gchar c[255]; > How to convert that ascii to utf ? tha

Re: problem with memory leaks

2006-04-03 Thread David Necas (Yeti)
On Mon, Apr 03, 2006 at 03:19:25AM -0700, morph_in wrote: > >I am a newbie to GTK programming and cannot work out a simple problem ,so > pls can some one inform abt the problem > > GtkTextBuffer *tbuffer; > GtkTextIter start; > GtkTextIter end; > GtkWidget * textv = lookup_wid

Re: Add signal handler for gtk_main_quit()

2006-04-01 Thread David Necas (Yeti)
On Sat, Apr 01, 2006 at 08:33:30PM -0800, [EMAIL PROTECTED] wrote: > How can I add a signal handler for gtk_main_quit()? gtk_main_quit() is not an action of any object, so how it could have a signal handler? > I mean there are multiple places in my application > which calls gtk_main_quit(), but I

Re: g_module_build_path on Win32

2006-03-30 Thread David Necas (Yeti)
On Thu, Mar 30, 2006 at 09:50:16AM -0800, Rick Jones wrote: > Tor Lillqvist wrote: > > > >If one specifies the full name of the dll including the ".dll", > >g_module_build_path() doesn prepend "lib". > > is that full absolute name, or a "full basename?" > > rick jones Use the Source, Luke. Yeti

Re: gtk+-2.8.15 make error

2006-03-30 Thread David Necas (Yeti)
On Wed, Mar 29, 2006 at 08:17:46PM -0800, Suhail Naqvi wrote: > Although I am a Java developer, I am not a very experienced Linux User. I am > using SuSE Linux 10. I am trying to compile gtk+-2.8.15 which is a > dependency > for f-spot-0.1.11. > > Make for gtk fails after compiling for quite s

Re: how to remove dialog-action-area from dialog box?

2006-03-28 Thread David Necas (Yeti)
On Tue, Mar 28, 2006 at 07:35:31PM +0530, Brijesh wrote: > hi all > > i want to display dialog box without dialog-action-area. how can i do > it? can anyone help me out? > > thanx in advance. > > Brijesh > > > > eInfochips Business Disclaimer: > This message may contain confidential, proprie

Re: glib compile bug?

2006-03-26 Thread David Necas (Yeti)
On Sun, Mar 26, 2006 at 11:04:56AM -0600, digitek wrote: > > Would glib-genmarshal (et al) binaries from a 2.2.3 solve all this? Yes, it should. Yeti -- That's enough. ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinf

Re: glib compile bug?

2006-03-26 Thread David Necas (Yeti)
On Sun, Mar 26, 2006 at 10:51:23AM -0600, digitek wrote: > > > > > > Hrm.. g_value_take_string is indeed in the 2.2.3 source wtf? > > > > [EMAIL PROTECTED] gtk]# cat glib-2.2.3/gobject/gmarshal.c | grep > > g_value_take_string > > g_value_take_string (return_value, v_return); > > scratch tha

Re: glib compile bug?

2006-03-26 Thread David Necas (Yeti)
On Sat, Mar 25, 2006 at 09:22:48PM -0500, digitek wrote: > I'm trying to cross-compile glib-2.2.3 for the arm but getting an error about > g_value_take_string. Is this a common error? > > --- > .. > arm-linux-gcc -g -O2 -Wall -o .libs/gobject-query > gobject-query.o ./.l

Re: Can't run gimp after gtk upgrade

2006-03-26 Thread David Necas (Yeti)
On Sat, Mar 25, 2006 at 07:28:06PM -0600, Jim Sabatke wrote: > >what does "ldd /path/to/gimp" say? > > [EMAIL PROTECTED]:~/programs/gimp/libs/gtk+-2.8.16> ldd /opt/gnome/bin/gimp > ... > libgobject-2.0.so.0 => /usr/local/lib/libgobject-2.0.so.0 (0x40544000) > libgmodule-2.0.so.0 => /usr/loca

Re: Can't run gimp after gtk upgrade

2006-03-25 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 08:21:35PM -0600, Jim Sabatke wrote: > SuSE 9.0 > gimp 2.2.3 > > I just compiled and installed the latest gtk+ libs, and get the > following error when I try to run gimp: > > gimp: relocation error: /opt/gnome/lib/libgtk-x11-2.0.so.0: undefined > symbol: g_object_compat_

Re: Usability of the GTK+ 2 file open dialog

2006-03-24 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 06:22:46PM +, Iain * wrote: > > But like you say, if it fucks you off so much > Do something about it. The past discussion of this topic (and there were quite a few of them) left a feeling in me that such patches (for example permanent shell-like behaving location entr

Re: GdkPixbuf and basic memory management?

2006-03-24 Thread David Necas (Yeti)
On Fri, Mar 24, 2006 at 12:32:59PM +0100, ?ystein Johansen wrote: > I'm using GdkPixbuf to load a simple texture to use in OpenGL. > > GError *pix_error = NULL; > GdkPixbuf *pixbuf = gdk_pixbuf_new_from_file(file, &pix_error); > > glBindTexture(blah, blah); > gluBuild2DMipmaps(blah, blah); > >

Re: Can GTK be used for C language

2006-03-23 Thread David Necas (Yeti)
On Thu, Mar 16, 2006 at 12:47:37PM +0530, Vinay Sandeep wrote: > This is Vinay Sandeep from Signal Networks Pvt Ltd., when I was going through > your site I could not figure out that GTK can be used to code in "c" Language Funny, as the Gtk+ home page (http://gtk.org/) says GTK+ has been desig

Re: Gtk signal_connect problem

2006-03-23 Thread David Necas (Yeti)
On Thu, Mar 23, 2006 at 04:05:42PM +0100, hm wrote: > I would like to write simple application in gtk. There is a button defined in > main () function. I`m connecting a signal function, with an clicked-event as > follows : > > gtk_signal_connect ( GTK_WIDGET ( ShitButton ), "clicked", GTK_SIGNAL

Re: Parsing command line arguments using Glib

2006-03-19 Thread David Necas (Yeti)
On Mon, Mar 20, 2006 at 09:42:35AM +1100, Randima Niroshini wrote: > I am trying to use GOption feature in my program to pass command line > arguments. However, when I try to use GOption functions I am getting the > following error. > > g++ -g -O2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/inc

Re: List of Data Types and Macros

2006-03-19 Thread David Necas (Yeti)
On Sun, Mar 19, 2006 at 12:51:13PM -0800, Micah Carrick wrote: > I use Gedit for GTK+ development and I have a customized .lang file for > GtkSourceView which I add GTK+ and Glib types and macros to as I use > them. This helps me catch typos as I'm working as they don't > "highlight" if I've mi

Re: keyhandling with focus widgets and modifier-less accelerators

2006-03-10 Thread David Necas (Yeti)
On Fri, Mar 10, 2006 at 09:26:51AM -0500, Paul Davis wrote: > i think that the comment inside this function speaks for itself. posted > just in case other people find it useful. of course, there is always the > possibility that GTK should do something like this by default. > > bool > key_press_foc

Re: Wait until widget is shown

2006-03-09 Thread David Necas (Yeti)
On Thu, Mar 09, 2006 at 03:03:25PM -0800, Micah Carrick wrote: > I have a function that will take some time to run.. actually, it forks > out another process which can take up to say 4 seconds. I want to > display a modal dialog during this time, or perhaps just a statusbar > message. In any c

Re: Usability of the GTK+ 2 file open dialog

2006-03-08 Thread David Necas (Yeti)
On Wed, Mar 08, 2006 at 07:57:22AM +0100, Frank Naumann wrote: > > No, that's not right. Every 'normal' windows user will complain if an > application don't use the system fileselector today. Sorry, but > using the native file selector is the expected behaviour. Sorry, but this is BS. Stop pre

Re: button-press-event only called if gtk_drag_source_set was used?

2006-03-07 Thread David Necas (Yeti)
On Tue, Mar 07, 2006 at 10:39:25PM +0100, Norbert Fabritius wrote: > I want to catch a mouse-click on my widget, so I connected with the > 'button-press-event' signal. Depending on how much the widget is `your', either add GDK_BUTTON_PRESS_MASK in widget's realize method: ... attributes.e

Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread David Necas (Yeti)
On Tue, Mar 07, 2006 at 09:37:12PM +0100, Jernej Simončič? wrote: > > Scanner control GUI? You do realize that there isn't any standarised > scanning dialog box on Windows, and that every vendor provides it's own That was exactly the point. Each one looks like from a different planet, it often i

Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread David Necas (Yeti)
On Tue, Mar 07, 2006 at 02:02:01PM -0500, Matthias Clasen wrote: > And of course, nobody in this thread can remember the years of screaming > and whining about the old file chooser... With all respect to you, this is a bogus argument. A different file open dialog does not automatically mean a good

Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread David Necas (Yeti)
On Tue, Mar 07, 2006 at 07:19:41PM +0100, Toby wrote: > > Detachable menus should also be turned off by default on Windows. > To its users it just doesn't look right. As far as I know menus are not detachable by default in Gtk+ (and the Gimp's are for a good reason). It is funny how the Microso

Re: Usability of the GTK+ 2 file open dialog

2006-03-07 Thread David Necas (Yeti)
On Tue, Mar 07, 2006 at 04:55:18PM +1100, Peter Eckersley wrote: > > Is anyone else equally frustrated? Absolutely. Despite of the various attempts to make it suck less with keyboard, it still sucks. However, the widgets are quite different so to make them switchable at toolkit level would be q

Re: GObject destruction

2006-02-12 Thread David Necas (Yeti)
On Sun, Feb 12, 2006 at 04:44:49PM +0100, Jacob Kroon wrote: > I've read the GObject tutorial, and I'm trying to understand how to > implement the dispose/finalize > functionality. They way I see it, the you need to override dispose in > GObjectClass, and that this > method should g_object_unref(

Re: how to use user_data field in GMarkupParser callbacks?

2006-02-07 Thread David Necas (Yeti)
On Tue, Feb 07, 2006 at 11:14:56AM -0600, Gabriel M. Elder wrote: > I've been scouring the documentation and the net trying to figure out > how to (correctly) utilize the "gpointer user_data" parameter to the > GMarkupParser callbacks. The only information the glib documentation > provides in this

Re: Compile time GTK version info/define

2006-02-07 Thread David Necas (Yeti)
On Tue, Feb 07, 2006 at 08:43:20AM -0500, Derek Piper wrote: > I have run across something where building on different targets for > a binary distribution of my C/GTK program means I have to compile > against > different versions of the GTK libraries. What define, if any, is around

Re: Win32 themes

2006-02-07 Thread David Necas (Yeti)
> On Mon, 6 Feb 2006 16:27:20 -0500, Etienne Fortin wrote: > > Besides, I don't see the reason behind theming the app, and not theming the > little thing that is the title bar. It is integrally part of the app, and the > two should look the same or else you just feel there's two things going on,

Re: decimal separator

2006-01-24 Thread David Necas (Yeti)
On Tue, Jan 24, 2006 at 09:21:48PM +0100, Quentin wrote: > > Here is how I deal with this problem in my program : > > use POSIX qw/locale_h/; > > # code that don't care what the decimal separator is > setlocale(LC_NUMERIC, 'C'); > # code that needs the decimal separator to be '.' > setlocale(LC_

Re: gtk_main in gtk appilcation?

2006-01-24 Thread David Necas (Yeti)
On Tue, Jan 24, 2006 at 09:36:26AM -0800, [EMAIL PROTECTED] wrote: > Why all the main of gtk application ends with calling > gtk_main()? gtk_main() transfers control to Gtk+ event loop. See http://developer.gnome.org/doc/API/2.0/gtk/gtk-General.html#desc It does not have to be the last thing in m

Re: decimal separator

2006-01-23 Thread David Necas (Yeti)
On Mon, Jan 23, 2006 at 11:56:33AM +0100, Olivier Pierard wrote: > On one computer, the same gtk program considers the decimal separator as > a coma, on the other one as a point. Obviously, this is linked to > regional settings (there is a call to gtk_set_locale in gtk_main() if I > understand

GObject qdata and weak_ref

2006-01-20 Thread David Necas (Yeti)
Hi, qdata is destroyed as the very last thing in the life of an GObject (just before the instance itself), therefore it's still available in notifiers set by g_object_weak_ref(). Is this a feature, I mean is it OK to use deceased_object's qdata in the notifiers? Yeti -- That's enough. ___

Re: UNICODE

2006-01-13 Thread David Necas (Yeti)
On Fri, Jan 13, 2006 at 12:33:53PM +0300, webline wrote: > I would like to know dos GTK+ > support UNICODE Gtk+ uses UTF-8 internally and all its functions take and return strings in UTF-8 (well, a few special functions do not, but all normal functions do). Yeti -- That's enough. __

Re: catching messages

2006-01-11 Thread David Necas (Yeti)
On Wed, Jan 11, 2006 at 10:41:45AM +0100, Diego Zuccato wrote: > > > Also, you don't need to use > > G_OBJECT(combo) since the combo is a GObject, you can just use "combo". > Conceptually, yes. But the C compiler complains about wrong argument > types if I don't cast to base type. The first argu

Re: glib / String handling difficult

2006-01-09 Thread David Necas (Yeti)
On Mon, Jan 09, 2006 at 06:52:45AM +0200, Juhana Sadeharju wrote: > > Hello. I have always found string handling quite difficult in C. > It also looks like sed, awk, perl etc. cannot handle all of my > simple needs. Really cannot? What about... > Now more difficult example. I need to parse "12 p

Re: Creating a GTK Cheat Sheet Poster

2005-12-31 Thread David Necas (Yeti)
On Sat, Dec 31, 2005 at 02:07:08AM +0100, Mikael Olenfalk wrote: > I just started working on creating a poster-sized (A0, approx 120x90 > cm) cheat sheet for GTK development. My plan is to show an application > window in the middle of the poster with all widgets in it and then > list the classes fo

Re: Last post

2005-12-27 Thread David Necas (Yeti)
Please use better subjects than `Yet another question' and `Last post'. On Tue, Dec 27, 2005 at 12:21:53AM -0800, William D. Tallman wrote: > Wouldn't you know it. After all this time, I just happened to notice > the solution in the back of Pennington. Run nested instances of > gtk_main(). Run

Re: Is a GtkWidget a decendant of a Gobject?

2005-11-18 Thread David Necas (Yeti)
On Fri, Nov 18, 2005 at 03:37:58PM -0500, LWATCDR wrote: > When this line of code > gobject=(GObject *)gtk_window_new(GTK_WINDOW_TOPLEVEL); > executes I get these messages. > > testgtk:11206): GLib-GObject-WARNING **: invalid (NULL) pointer instance > > (testgtk:11206): GLib-GObject-CRITICAL **:

Re: Question

2005-11-11 Thread David Necas (Yeti)
On Fri, Nov 11, 2005 at 12:27:28AM +, Chris Vine wrote: > > What a curious point. You want your program to display itself using a GNOME > theme but you don't want to run any GNOME daemons to do it. It is a bit like > complaining that you cannot run a KDE program without the KDE libraries

Re: GObject constructors

2005-11-10 Thread David Necas (Yeti)
On Thu, Nov 10, 2005 at 11:33:04AM -0800, Dave Benson wrote: > > actually, you can take advantage of the fact that > real prototype of GInstanceInitFunc is > > typedef void (*GInstanceInitFunc) (GTypeInstance *instance, > gpointer

Re: GObject constructors

2005-11-10 Thread David Necas (Yeti)
On Wed, Nov 09, 2005 at 06:43:17PM +0100, Jacob Kroon wrote: > I'm having problems with figuring out how to initialize my data properly. > My scenario is that I have: > > struct Parent { >GObject parent; >float *data; > } > > struct ParentClass { >GObjectClass parent; >int data_si

Re: GTK+ or GTK?

2005-11-01 Thread David Necas (Yeti)
On Tue, Nov 01, 2005 at 11:29:40PM +0100, yordy wrote: > GTK+ is GTK-2.x, they are the same? > I want to install XFCE desktop environment, The package names seem to indicate you have Fedora Core 4. If it's so, please just install XFce with you favourite package manager and don't try to compile any

Re: Char = GtkWidget *entry_host

2005-10-08 Thread David Necas (Yeti)
On Sat, Oct 08, 2005 at 01:18:22PM -0300, Wilton wrote: > > entry_host = gtk_entry_new (); > gtk_entry_set_max_length(GTK_ENTRY (entry_host),50); > gtk_entry_set_text(GTK_ENTRY (entry_host),"localhost"); > gtk_box_pack_start(GTK_BOX (vbox), entry_host, TRUE, TRUE, 0); > gtk_widget_show(entry_

Re: window delete, hide, and present on Win32

2005-09-27 Thread David Necas (Yeti)
On Tue, Sep 27, 2005 at 11:20:00PM +0300, Tor Lillqvist wrote: > > Well, the window state management code in the gdk/win32 backend is > quite hairy, and no doubt has bugs... I am afraid of touching it, > though, as fixing one corner case might break another, without me > noticing. I would almost r

Re: window delete, hide, and present on Win32

2005-09-27 Thread David Necas (Yeti)
On Tue, Sep 27, 2005 at 05:25:49PM +0300, Tor Lillqvist wrote: > David Necas (Yeti) writes: > > When the first method is used, it reappears on its previous > > position. > > > When the second method is used, it always appears in the > > upper left corner. >

window delete, hide, and present on Win32

2005-09-27 Thread David Necas (Yeti)
Hello, I have window positioning troubles when a window is re-shown after gtk_widget_hide() on Win32. The attached program should demonstrate it clearly. It has a main window with a button to show an auxiliary window. The auxiliary window exists though all program lifetime, but can be hidden a

Re: Problems with pango

2005-08-20 Thread David Necas (Yeti)
On Sat, Aug 20, 2005 at 11:53:56AM +0300, Olexiy Avramchenko wrote: > > Now you have all libraries installed under "/home/your-home/test-dir". > To compile anything with them you need export env variables like in 2) > If you need to run smth you need just LD_LIBRARY_PATH. By (un)setting LD_LIBR

Re: Focus handling

2005-08-18 Thread David Necas (Yeti)
On Thu, Aug 18, 2005 at 02:24:52PM +0800, Calin Vatavu wrote: > I have an entry in fixed widget contained by an event_box and the event box > gets all the keystrokes until you click on the text entry. > > What I want is when I click back on the event box's background the keyboard > focus to swi

Re: Problems with Properties and Notify Signal Parts

2005-07-29 Thread David Necas (Yeti)
On Fri, Jul 29, 2005 at 05:27:15PM +1000, Richard Cole wrote: > > My guess is that this situation should be fixed so that underscores are > changed to hyphens in each of: property names, signal names, and signal > details. Not all signal details are property names. In fact, probably only those

Re: installation of gtk using mandrake or suse version

2005-07-26 Thread David Necas (Yeti)
On Tue, Jul 26, 2005 at 05:23:37PM +0100, sagar khichade wrote: > how to install gtk using mandrake linux or suse linux? Gtk+ is not installed differently than all other software. urpmi libgtk+2.0_0 libgtk+2.0_0-devel yast -i gtk2 gtk2-devel If you use some GUI tool, just use that to install the

Re: Pango compilation error

2005-07-23 Thread David Necas (Yeti)
On Sat, Jul 23, 2005 at 09:48:21AM +, alok nagdev wrote: > I'm really sorry for sounding rude...which honestly I didnt intend to! > As you mentioned about having an older version of glib in system, that > seems correct. I would apprecite if you could suggest me on what > modifications need to

Re: Pango compilation error

2005-07-23 Thread David Necas (Yeti)
On Fri, Jul 22, 2005 at 11:25:12PM +, alok nagdev wrote: > Sorry for having the wrong heading in my previous mail, so far I havent > heard from anyone. I hope to get a response back soon. I hope you are aware you are rude. What's the point of reminding everyone you didn't get answer a couple

Re: Drawing higher depth images

2005-07-14 Thread David Necas (Yeti)
On Tue, Jul 12, 2005 at 05:11:38PM +0300, Olexiy Avramchenko wrote: > There's one trick: > 1. Create a pixmap with depth of 32. > 2. Create gc for the pixmap. > 3. Set the 32-bit colour you want with gdk_gc_set_foreground() > (0xAABBGGRR for the little-endian boxes, 0xRRGGBBAA for the big-endian

Re: Signals & Callbacks - Help!! Part 2

2005-07-09 Thread David Necas (Yeti)
On Sat, Jul 09, 2005 at 12:28:21AM -, [EMAIL PROTECTED] wrote: > Thank Yeti for your help, I really appreciate your input. However, due to > my lack of experience on GTK+ I am afraid I would need something a bit > more tangible. Could you please provide me with a example or point me to > to a p

Re: Signals & Callbacks - Help!! Part 2

2005-07-06 Thread David Necas (Yeti)
On Thu, Jul 07, 2005 at 03:07:03AM -, [EMAIL PROTECTED] wrote: > I realize that I am very new at using GTK+, but what is the point of > having a function that accepts some parameters if I cannot pass any > variables to that function. You can pass one arbitrary pointer (in place of your NULL).

Re: Signals & Callbacks - Help!! Part 2

2005-07-06 Thread David Necas (Yeti)
On Thu, Jul 07, 2005 at 02:33:47AM -, [EMAIL PROTECTED] wrote: > I did as you suggested and this is the result of the modifications: > snip- > gboolean MessageInfo(GtkButton* btn, char* msg){...} > > g_signal_connect(GTK_OBJECT(btnCreateAccount),"clicked", /*This line > causes the erro

Re: Signals & Callbacks - Help!!

2005-07-06 Thread David Necas (Yeti)
On Wed, Jul 06, 2005 at 10:58:59PM +0200, Jean Bréfort wrote: > That is, the first parameter of your callback is the button which was > clicked, unless you use g_signal_connect_swapped. > SQo you have two solutions, either, you change the signayure of MessageInfo: > gboolean MessageInfo(GtkButoon*

Re: Problems with GtkPaned

2005-07-05 Thread David Necas (Yeti)
On Wed, Jul 06, 2005 at 01:12:37AM -0500, Greg Breland wrote: > > I was right there with Miroslav in not realizing that a property and > "notify::" could be used as the signal description. Is this possible > with all properties or just certain ones? > > Why is this not a formal signal prototype?

Re: Using GSignals

2005-07-03 Thread David Necas (Yeti)
On Mon, Jul 04, 2005 at 02:15:13AM -, [EMAIL PROTECTED] wrote: > I have read information about GSignals from the GOobject Reference Manual > provided by http://developer/gnome.org/doc/API/2.0/gobject-Signals.html, > but the explanation there is too esoteric for me. All I am trying to do is > to

Re: GTK installation

2005-07-02 Thread David Necas (Yeti)
On Sat, Jul 02, 2005 at 11:12:32AM -0400, Antonio Gomes wrote: > just once again (sorry Yeti, but let's make easier his life :)) > > You must install all GTK dependences in the "right place" (using the > --prefix configure options and/or setting up your PGK_CONFIG_PATH with > the .pc files created

Re: GtkComboBox

2005-07-01 Thread David Necas (Yeti)
On Fri, Jul 01, 2005 at 05:06:15PM +0530, Pramod Patangay wrote: > I asked this question previously but there were no replies. So here I > am again. I would like to disable a particular entry in the > GtkComboBox. I am using a GtkComboBox with a model and supplying it > cell renderers. So just add

Re: GTK installation

2005-06-30 Thread David Necas (Yeti)
On Fri, Jul 01, 2005 at 10:39:37AM +0530, Ninad Pachpute wrote: > > configure: error: Library requirements (glib-2.0 >= 2.6.0atk >= > 1.0.1pango >= 1.7.0) not met; consider adjusting the > PKG_CONFIG_PATH environment variable if your libraries are in a > nonstandard prefix so pkg-config ca

Drawing higher depth images

2005-06-30 Thread David Necas (Yeti)
Is it possible to use Gdk drawing functions (gdk_draw_arc(), etc.) to draw images of higher depth than system and save them? I can save GdkPixbufs. If there were drawing primitives in gdk-pixbuf, it would be everything I need. However I can draw only on GdkDrawables. To use gdk_pixbuf_get_from

Re: Get rid of cursor in Label

2005-06-26 Thread David Necas (Yeti)
On Sun, Jun 26, 2005 at 10:21:51AM +0200, Preben Randhol wrote: > > My problem was that GTK automatically chose the label to have > focus every time. I solved it by grabing focus on the scrolledwindow in > stead. I want the text to be selectable in case somebody wants to copy > it, but I don't wan

Re: Get rid of cursor in Label

2005-06-26 Thread David Necas (Yeti)
On Sun, Jun 26, 2005 at 01:29:40AM -0700, Ben Johnson wrote: > > I'm trying to help Preben make gtk behaive what he believes it should. I tried to explain why Gtk+ behaves like it does and why it's good and not a bug, because I had the feeling he did not understand he might be trying to create a

Re: Get rid of cursor in Label

2005-06-26 Thread David Necas (Yeti)
On Sat, Jun 25, 2005 at 04:21:28PM -0700, Ben Johnson wrote: > > 1) using the mouse, highlight a section of a selectable label. > - notice that the cursor is only visible until one character has been > highlighted. dragging further to expand the selection does not > cause the cursor to

Re: Get rid of cursor in Label

2005-06-25 Thread David Necas (Yeti)
On Sat, Jun 25, 2005 at 10:57:32PM +0200, Preben Randhol wrote: > If one setup a Label so that one can select the text of the label, one > get an annoying "|"-cursor at the beginning of the label. How can one > get rid of this? How would you know cursor position when you are selecting text with ke

Re: Label and wrap text

2005-06-19 Thread David Necas (Yeti)
On Sun, Jun 19, 2005 at 09:30:46AM +0200, Jean Bréfort wrote: > > I did not try it, but a call to gtk_label_set_justify should solve your > problem: > gtk_label_set_justify (label, GTK_JUSTIFY_FILL); This doesn't help -- in fact, it doesn't even seem to do what it should do, I get ragged right te

Re: Help: gtk_list_store_set causing memory fault !

2005-06-17 Thread David Necas (Yeti)
On Thu, Jun 16, 2005 at 11:09:26PM +, Dean Toth wrote: > > I have gtk-2.0.6 on my laptop (linux) and gtk-2.6.0 on a HPUX 11.11 system. > There is some code that works on the laptop but not on the HP box. I have > pared the code down to the following which causes a memory fault: > >

Re: Activate a component

2005-06-16 Thread David Necas (Yeti)
On Thu, Jun 16, 2005 at 01:53:15PM +0200, Jean Chapelle wrote: > > I've some component in my application ; like a GtkTextEntry, a GtkTextView,... > When I click with my mouse on a component, this component is "activated" and > I see the cursor in it. I want to "activate" one of these components b

Re: GTK+ 2.6.8 released

2005-06-16 Thread David Necas (Yeti)
On Thu, Jun 16, 2005 at 12:54:18AM -0400, Matthias Clasen wrote: > * Fix a bug in focus tracking that lead to problems between some > window managers and GTK+ applications. [Owen Taylor, Billy Biggs, > Niko Tyni] Does this issue have a bugzilla record? I cannot find it in the list of fixed bu

Re: Seconds passed since today

2005-06-15 Thread David Necas (Yeti)
On Wed, Jun 15, 2005 at 12:46:21PM +0200, Richard Stellingwerff wrote: > Is there a way to determine the amount of seconds that has passed > since today (instead of Epoch)? Something like time_t t; struct tm *tm; int sec; time(&t); tm = localtime(&t); sec = tm->tm_sec + 6

Re: Drawing jpg files

2005-06-15 Thread David Necas (Yeti)
On Wed, Jun 15, 2005 at 12:00:41AM -0700, Shiraz Baig wrote: > I wish to show a jpg file in the user interface. > What widget do I use and what function call do I use. > I tried an image widget But it does not show jpg > files. gtk_image_new_from_file("file.jpeg"); It can load JPEGs -- unless you

Re: How to get character encoding...

2005-05-29 Thread David Necas (Yeti)
On Sun, May 29, 2005 at 01:56:26PM -0400, Micah Carrick wrote: > Is there a routine I can use to determine the character encoding of a > text file so I can then convert it to UTF-8 for display in a gtkTextView? Generally, no. For a short text in arbitrary language and arbitrary encoding even hum

Re: operator overload

2005-05-18 Thread David Necas (Yeti)
On Wed, May 18, 2005 at 03:32:02PM -0300, Renato Araujo wrote: > How to make the operator overload in gtk? You can overload operators in C++ (e.g.). Gtk+ is not a programming language and has no operators to overload. > X is a class Y whit 2 operators overload (GTK_BUTTON and GTK_LABEL) Sorry

Re: file open dialog with file name entry

2005-04-30 Thread David Necas (Yeti)
On Sat, Apr 30, 2005 at 08:37:09AM +0200, David Necas (Yeti) wrote: > except one could see what one > types, unlike in GtkFileChooserDefault. I'm sorry, that is already possible. Yeti ___ gtk-list mailing list gtk-list@gnome.org http://mai

Re: file open dialog with file name entry

2005-04-29 Thread David Necas (Yeti)
On Fri, Apr 29, 2005 at 08:37:37PM +0200, Sven Neumann wrote: > > Adding an entry to the GtkFileChooser widget would completely ruin > keyboard navigation. In what way? Typing in the entry would move selection to matching entry in file list like it does in GtkFileChooserDefault -- except one cou

file open dialog with file name entry

2005-04-29 Thread David Necas (Yeti)
Hello, has anyone implemented a decent Gtk+2 file open dialog which has a file name entry? I'm still using GtkFileSelection and I'd like to have a preview in file open dialogs, but no file name entry is a worse problem than missing preview. Actually, moving the GtkFileChooserEntry from Open Loc

Re: How to find your shell

2005-04-28 Thread David Necas (Yeti)
On Thu, Apr 28, 2005 at 04:52:18PM +0800, Xu Qiang wrote: > > Anyway, who cares win32 - a M$ product? Some people obviously care enough to port Gtk+ to it... Yeti -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q:

Re: How to find your shell

2005-04-28 Thread David Necas (Yeti)
On Thu, Apr 28, 2005 at 09:27:43AM +0100, Philip Kendall wrote: > > $ uname -s -r > FreeBSD 4.9-STABLE > $ ls -l /proc/self/exe > ls: /proc/self/exe: No such file or directory None of the proposed methods work on Win32 anyway. Maybe it's time to define where you want to find the shell... Yeti

Re: fedora is out to get me

2005-04-20 Thread David Necas (Yeti)
On Wed, Apr 20, 2005 at 02:57:49PM -0400, [EMAIL PROTECTED] wrote: > checking for GLIB - version >= 2.5.7... > *** 'pkg-config --modversion glib-2.0' returned 2.6.4, but GLIB (2.4.8) > *** was found! If pkg-config was correct, then it is best > *** to remove the old version of GLib. You may also be

Re: GdkPixbufFormat

2005-04-16 Thread David Necas (Yeti)
On Sat, Apr 16, 2005 at 07:37:46AM +0100, abhi rocks wrote: > I was wanting to get the format of a particular image > so i used the function gdk_pixbuf_get_file_info. > Unfortunately it gave an error on compiling saying > there is no reference to the function. When i checked > the gdk-pixbuf.h fil

Re: Finding out signals for an interface

2005-04-10 Thread David Necas (Yeti)
On Sat, Apr 09, 2005 at 07:06:14PM -0700, Andrei Zmievski wrote: > How can I find out the list of signals a certain interface type has > given its GType? I tried using g_signal_list_ids(), but it just returns > an empty array. I also tried using g_type_class_ref() to make sure that > GTypeClass

Re: Getting hex string from a GdkColor

2005-04-08 Thread David Necas (Yeti)
On Fri, Apr 08, 2005 at 06:06:34PM +0200, Stefano Esposito wrote: > i've a color button from which i obtain a GdkColor with > gtk_color_button_get_color(). Now i need the hex string representing this > color but all that i find searching in the api docs is a function that obtain > a GdkColor fro

Re: motion-notify-event problems

2005-04-05 Thread David Necas (Yeti)
On Tue, Apr 05, 2005 at 11:29:11AM -0300, Gustavo Rahal wrote: > > > >Did you call gtk_widget_add_events(window, GDK_POINTER_MOTION_MASK)? > > Thanks, that solved the problem! > Why do I have to put this extra line? Widgets (actually, X Windows) have to opt in for events they want to receive. I

Re: motion-notify-event problems

2005-04-04 Thread David Necas (Yeti)
On Mon, Apr 04, 2005 at 05:58:17PM -0300, Gustavo Rahal wrote: > >> > >>I have a window with a label and an entry, when I connect > >>motion-notify-event to the window the signal is only emmited when the > >>mouse passes over the entry... wasn't it supposed to be emitted anywhere > >>inside the win

Re: signals (and disconnecting them)

2005-04-04 Thread David Necas (Yeti)
On Mon, Apr 04, 2005 at 06:18:57PM +0200, [EMAIL PROTECTED] wrote: > > Events that are queue'd are not scheduled until glib iterates again, so > they will be "lost" yes. Even signals you emit by hand will be "lost" > after the handler is unhooked. Atleast logic should be like that. Please don't c

Re: GTK+ 2.6.2 and themes

2005-04-03 Thread David Necas (Yeti)
On Sun, Apr 03, 2005 at 03:44:21PM +0200, [EMAIL PROTECTED] wrote: > i have recently installed GTK+ 2.6.2 for development on top of the 2.0 > version pre-installed by the friendly redhat people and ever since, each > time i start up my program, gtk complains so: > > Gtk-WARNING **: Unable to locat

  1   2   >