Re: Simple question...

2018-07-01 Thread Chris Moller
My counter-example, and my inspiration, is GIMP. When you have a control-intensive things going on--the Dodge/Burn tool, for example, has eight spinbuttons, and 24 buttons of other types all in one sub-panel, and that doesn't even include the 50 or so buttons on other panels--you just don't

Re: Simple question...

2018-07-01 Thread Stefan Salewski
On Fri, 2018-06-29 at 22:38 -0400, Chris Moller wrote: > ...but I can't figure it out: How do I make a tiny little button, > like 10x10 pixels, gtk_widget_set_size_request (button, 10, 10); > doesn't work. gtk_widget_size_allocate (GtkWidget *widget, > GtkAllocation *allocation); doesn't

Re: Simple question...

2018-07-01 Thread Michael Gratton
On Sat, Jun 30, 2018 at 11:58 PM, Chris Moller wrote: I'm writing a complex-number spinbutton widget that needs two sets of up/down buttons, and the default buttons are just too bloody huge. Fair enough, but the reason why GTK spin buttons are as large as normal buttons is because they

Re: Simple question...

2018-06-30 Thread Chris Moller
Thanks. I'm writing a complex-number spinbutton widget that needs two sets of up/down buttons, and the default buttons are just too bloody huge. Chris On 29/06/18 22:55, Michael Gratton wrote: On Sat, Jun 30, 2018 at 12:38 PM, Chris Moller wrote: ...but I can't figure it out:  How do I

Re: Simple question...

2018-06-29 Thread Michael Gratton
On Sat, Jun 30, 2018 at 12:38 PM, Chris Moller wrote: ...but I can't figure it out: How do I make a tiny little button, like 10x10 pixels, gtk_widget_set_size_request (button, 10, 10); doesn't work. gtk_widget_size_allocate (GtkWidget *widget, GtkAllocation *allocation); doesn't work.

Simple question...

2018-06-29 Thread Chris Moller
...but I can't figure it out:  How do I make a tiny little button, like 10x10 pixels, gtk_widget_set_size_request (button, 10, 10); doesn't work.  gtk_widget_size_allocate (GtkWidget *widget,    GtkAllocation *allocation); doesn't work. ( can't make anything work using CSS.  Nothing seems to

Re: simple question

2018-02-19 Thread Nicola Fontana
Il Mon, 19 Feb 2018 09:24:20 +0100 Wojciech Puchar scrisse: > On 2018.02.19 08:09, Nicola Fontana wrote: > > Il Sat, 17 Feb 2018 21:32:19 +0100 (CET) Wojciech Puchar > > scrisse: > > ... > > If you want full control over something just use a

Re: simple question

2018-02-18 Thread Nicola Fontana
Il Sat, 17 Feb 2018 21:32:19 +0100 (CET) Wojciech Puchar scrisse: > i want in my program to change background color of the gtk_button to red > sometimes as a signal to the user. > > it works fine with default theme but not with some other themes like > E17gtk. > > how to

Re: simple question

2018-02-17 Thread Liam R E Quin
On Sat, 2018-02-17 at 21:32 +0100, Wojciech Puchar wrote: > i want in my program to change background color of the gtk_button to > red > sometimes as a signal to the user. Although i don't have an answer (sorry) i'll note - i've worked with people who were red/black colourblind. I'd really be

simple question

2018-02-17 Thread Wojciech Puchar
i want in my program to change background color of the gtk_button to red sometimes as a signal to the user. it works fine with default theme but not with some other themes like E17gtk. how to fix this and ENFORCE color of button? Same with text_entry - only border is changed not the whole

simple question about gtk_notebook

2008-09-26 Thread Vasiliy Tolstov
Hello. I have this code (window with 2 tabs), if i'm try to run - displays only window without tabs, where is error ? gtk_init (argc, argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title (GTK_WINDOW (window), Services); gtk_window_set_position

Re: simple question about gtk_notebook

2008-09-26 Thread Damien Caliste
Hello, Le 26/09/2008, Vasiliy Tolstov [EMAIL PROTECTED] a écrit : Hello. I have this code (window with 2 tabs), if i'm try to run - displays only window without tabs, where is error ? Isn't the gtk_container_add(GTK_CONTAINER(window), notebook); missing? Damien.

Re: simple question about gtk_notebook

2008-09-26 Thread Vasiliy Tolstov
On Fri, 2008-09-26 at 11:26 +0200, Damien Caliste wrote: Hello, Le 26/09/2008, Vasiliy Tolstov [EMAIL PROTECTED] a écrit : Hello. I have this code (window with 2 tabs), if i'm try to run - displays only window without tabs, where is error ? Isn't the

Simple question

2008-09-18 Thread Vasiliy Tolstov
I'm try to program with gtk, create main window, vbox for buttons, but then program run - button have all the window width. How can i set button width and height? This is code: gtk_init (argc,argv); window = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_title

Re: Simple question

2008-09-18 Thread Sergei Steshenko
--- On Thu, 9/18/08, Vasiliy Tolstov [EMAIL PROTECTED] wrote: From: Vasiliy Tolstov [EMAIL PROTECTED] Subject: Simple question To: gtk-list@gnome.org Date: Thursday, September 18, 2008, 2:03 AM I'm try to program with gtk, create main window, vbox for buttons, but then program run

A very simple question..

2008-02-03 Thread nisha jain
Hi All, I have to implement a gui - a box using gtk API which can display sign signal by reading from a file. Any one has idea which function i need to use ? gtk_draw_box or gtk_draw_rectangle? I am very new to APIs and i am not able to compile the examples given in maemo tutorial 4-x I asked

Simple question

2008-01-22 Thread iluvlinux
i should fill in there? thanks -- View this message in context: http://www.nabble.com/Simple-question-tp15014925p15014925.html Sent from the Gtk+ - General mailing list archive at Nabble.com. ___ gtk-list mailing list gtk-list@gnome.org http

Re: Simple question

2008-01-22 Thread mmassonnet
On Tue, Jan 22, 2008 at 01:00:12AM -0800, iluvlinux wrote: hi Hello, the GdkWindow member of the Event structure contains the GdkWindow associated with a particular widget or the GdkWindow of the top level window? I am trying to generate a keypress event (just for experiment purpose)

Re: Simple question

2008-01-22 Thread iluvlinux
___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list -- View this message in context: http://www.nabble.com/Simple-question-tp15014925p15015487.html Sent from the Gtk+ - General mailing list archive

Re: Simple question

2008-01-22 Thread mmassonnet
On Tue, Jan 22, 2008 at 01:48:35AM -0800, iluvlinux wrote: hi i think you didn't get my question i want to know that if i want to generate my own keypress event what should the GdkWindow field of event structure should contain? the toplevel GdkWindow or the widget specific GdkWindow on

Re: Simple question

2008-01-22 Thread iluvlinux
/wiki/Top_posting ___ gtk-list mailing list gtk-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-list -- View this message in context: http://www.nabble.com/Simple-question-tp15014925p15016804.html Sent from the Gtk+ - General mailing

another simple question

2007-11-26 Thread Andres Gonzalez
Hi Folks, I have a couple of basic (Gtk newbee) questions. The following code seems to work--except when I uncomment out the call to gtk_window_set_resizable(). Why? m_pWidgetPreview = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_window_set_default_size

Re: Simple question - accelerator keys

2007-08-31 Thread Stefan Kost
Hi, I am currently trying to figure out something simillar. Unfortunately it seems that accelerators are only used for menues in most applications. If you check gnome-bugzilla - it has several open bugs for accelerators. I recently fixed one and right now prepared a test program for another. Lets

Simple question - accelerator keys

2007-08-30 Thread Tomasz Sałaciński
Hi there, Is there a possibility to simply bind a window-global accelerator key to a callback function? I am writing a GTK+ media player and I want to bind Left and Right arrow keys to seek media and F key to toggle fullscreen. I know that I can use gtk_widget_add_accelerator(), but then I have

Simple question.

2007-01-15 Thread LWATCDR
Anyone have an example of a make file for a GTK application? Just a simple one for a helloworld would do. I am having to move from Eclipse.org to a more standard build system and I havn't dealt with makefiles for years. ___ gtk-list mailing list

Re: Simple question.

2007-01-15 Thread John Cupitt
On 1/15/07, LWATCDR [EMAIL PROTECTED] wrote: Anyone have an example of a make file for a GTK application? Just a simple one for a helloworld would do. If it's a single file, you can just do: gcc hello.c -o hello `pkg-config gtk+-2.0 --cflags --libs` Put that in a comment on the first line

Simple (?) question about GtkLabel

2006-08-17 Thread hm
Hi ! Is it possible to stretch text in gtk label to fill all parrent space, that is given for GtkLabel ? I mean.. let`s say we`ve got a table. Let`s place GtkLabel in one of the cells. Now.. Let`s say, that window is now maximized, and text insie gtklabel is something short, like : ABC.

Re: Simple question about SimpleList

2006-08-17 Thread Andrius Aštrauskas
Thank you. It works - I have gtk+ 2.8.18. And I was wrong about the docs - it was me who managed to look for wrapping in man page of CellRenderer instead of CellRendererText ... Andrius ___ gtk-perl-list mailing list gtk-perl-list@gnome.org

GtkImage simple question, please help

2006-06-25 Thread hm
Hi ! I`ve got a question. Let`s have this piece of code : ... GtkWidget * image1; GtkWidget * button; ... button = gtk_button_new (); image = gtk_image_new_from_file ( PATH ); gtk_button_set_image ( GTK_BUTTON ( button), image1 ); questions are : * if i`ll call

simple question

2006-05-30 Thread Beast
How do I get last(max) index of SimpleList data? ___ gtk-perl-list mailing list gtk-perl-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-perl-list

Re: simple question

2006-05-30 Thread muppet
On May 31, 2006, at 6:55 AM, Beast wrote: How do I get last(max) index of SimpleList data? Normally. :-) With a normal array, it's @ary = $#ary with an array reference, it's @$aryref = $#{ $aryref } or $#$aryref with SimpleList's tied list, it's just the same, but the

Re: simple question: are const gchar* arguments hold as copies internally?

2005-09-06 Thread Tristan Van Berkom
Felix Kater wrote: Hi, these two functions take const gchar pointers: void gtk_label_set_text([...] const gchar *str); void g_key_file_set_value([...] const gchar *group_name, [...]) Does that mean that the arguments are *not* hold as copies internally so that I have to care for the allocated

newbie, very simple question

2005-08-11 Thread Marek Florianczyk
Some link to tutorial to gtk_threads, or examples about gtk_threads_enter/leave? How to write in GTK with threads? I have to, I want to, but I don't know how...:( Thanks Marek ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org

Simple question about g_path_get_dirname()

2005-03-31 Thread Jérôme Couderc
Hi, As the filename read on the file system may not be in UTF-8 encoding, must I always convert it to UTF-8 (with g_filename_to_utf8) before to use the function : dirname = g_path_get_dirname(filename) ? Thanks in advance for the reply Regards, Jerome

simple question

2004-09-28 Thread Patel, Nilesh M
quick question. I know this maybe a stupid question, but when I do this: ./configure --prefix=/opt/gtk shouldn't my package (pkgconfig) be installed in the /opt/gtk directory. after I run that command I go to the /opt/gtk directory but see nothing there. is this correct? or should i see

Re: simple question

2004-09-28 Thread Tristan Van Berkom
On Tue, 28 Sep 2004 15:15:02 -0400, Patel, Nilesh M [...] I know this maybe a stupid question, but when I do this: ./configure --prefix=/opt/gtk shouldn't my package (pkgconfig) be installed in the /opt/gtk directory. after I run that command I go to the /opt/gtk directory but see

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

simple question

2001-09-27 Thread J.D. Walker
I have a .gif that I want to display in a window that my perl program puts on the screen. I'm using Gtk-Perl. Can anyone tell me how to do this? J.D. Walker J.D. Walker Security Engineer EWA-Information Infrastructure Technologies, Inc. 13873 Park Center Road Herndon, VA 20171

A simple question.

2000-08-05 Thread Patrick Mariescurrena
I'm writing my first modest gtk application, and I would like to position the main window in a specific (50,50) coordinate. I'm using : gtk_widget_set_uposition(GTK_WIDGET(window), 50, 50); however, the window is always drawn in the same place it was last time you closed it. Is this a bug or am