Paul Davis wrote:
>>- use gtkcanvas
>>
>> high level OO canvas widget will do all the work
>> for you ... it won't be the quickest thing ever
>> though, since the compositing work is
>> done on the application side (I think)
>>
>
> actually, this is what makes the canvas *faster*, not slower
Yes :-) try
gtk_editable_paste_clipboard()
John
Vahid Zahiri wrote:
> Hi John
>
> I want get a selected text in other running
> application,
> by send button3 click to my entry widget :)
> are you know better way?
>
> thanks in advance
> Vahid
>
> --- [EMAIL PROTECTED] wrote:
Vahid Zahiri wrote:
> I want send a click signal to a widget,
> is it possible?
It is difficult to make synthetic events which work reliably, and you
are not allowed to emit other widget's signals, so I think this is
probably impossible.
Why do you want to do this? Maybe there is another w
sona krithi wrote:
> We find it difficult to interface a linux
> shell program with gtk.How to use LINUX commands in
> gtk.
Hi, have you tried using system()?
John
==
Coming soon:
Aelbert Cuyp 13 February - 12 May 2002
For
There's also guppi:
http://www.gnome.org/projects/guppi/
David Eduardo Gomez Noguera wrote:
> why dont you make a pipe to gnuplot or some of those?
>
> also, ask them if bonobo could be used to have that plotted to a widget,
or if you can use their source in any way to get that.
>
> On Sat, 26
Chris Seberino wrote:
> When you have a scroll bar or GTKHScale how do you
> add text above it to name/explain it? Do you
> add a new widget? Which one?
Put a GtkLabel left/right/above/below/whatever.
John
==
Coming soon:
Aelbert C
Chris Seberino wrote:
> Suppose I want to simulate a picture moving
> across a widget/pixmap. I *could* erase it and
> redraw it moving it 1 pixel at a time.
>
> but...
>
> is there a better/faster way to simulate movement
> regarding a picture???
Hi Chris, there are many, many technique
¶À¼y Kason Huang wrote:
> hi John:
> Thanks for your help!
> before i received your mail,i was thinking in the gtk source codes how to
do with the problem.
> maybe i could get help from the source codes.
> I find in the gtk source code gtk_button_class_init() calls
gtk_signal_new("enter".
Vahid Zahiri wrote:
> When i make a application,
> how can set icon for my window?
Hi, you want gdk_window_set_icon().
John
==
Coming soon:
Aelbert Cuyp 13 February - 12 May 2002
For information and tickets:
http://www.nationalg
¶À¼y Kason Huang wrote:
> now i want to do:my condition is being no mouse,the only terminal
controlling tool is the keyboard.(i am doing a STB project.). when a
button get focus(with keyboard) , setting the button's background to be a
color. then when the button lost focus,setting the button
Chip Rodden wrote:
> I'm trying to modify a gtk program which uses a file selection
> widget.(gtk_file_selection_new) I have maybe 3 hours of experience
> looking at gtk code so I'm fairly clueless. What I am trying to do is
> to limit the user to just one directory where he can open from or
Hellenthal wrote:
> I'm using wxGTK-2.2.9 and gtk+-1.2.10 in a project over here and have a
logging
> window for which wxWindows uses the GtkText widget. Unfortunatly it has no
> horizontal scrollbar. I can adapt the wxWindows code to show a horizontal
> scrollbar but it doesn't work.
GtkText
Randy Rueckner wrote:
> i have an array with 256x256 8-bit grey values and want to put this image
> in a gtk drawable. there is no problem with gdk_draw_grey_image(), but
the
> x-server and my program runs on two different computers.
> if i move the output-window on the screen, i must redraw it
Vahid Zahiri wrote:
> I want run a function per 10 minute?
> How can i do this?
Hi, try:
http://developer.gnome.org/doc/API/gtk/gtk-general.html#GTK-TIMEOUT-ADD
==
Renaissance Autumn at the National Gallery
A season of exhibitions
Jamie Guinan wrote:
> 1. I connect to "size-request", and pass my preferred initial size the
>first time (the GtkDrawingArea is created that size), then
>{0,0} every successive time, which allows the window to be
>sized down.
>
> 2. I connect to "size-allocate", and scale/crop the
David Emory Watson wrote:
> I am trying to create a pixbuf from a jpg file stored in memory. If I
> am reading the gtk-pixbuf documentation correctly, this is currently not
> supported. Is this possible with gtk-pixbuf from cvs, libjpeg, or will
> I have to resort to saving the file to disk? A
vahid zahiri wrote:
> I want show a picture (like .png or .jpg or orther)
> on program window.
> How can i do this?
There's a FAQ on this too:
http://www.gtk.org/faq/#AEN654
You'll need to use libjpeg/libtiff/libpng/whatever to load the image
into memory.
You could try imlib or gdk-pixb
vahid zahiri wrote:
> I can't change background color of Label.
> i change "style->bg".
> how can i change it?
Hi Vahid, there's a FAQ about this:
http://www.gtk.org/faq/#AEN780
John
==
Renaissance Autumn at the National Gallery
Jyothi wrote:
> I am facing problems while showing a widget. I have a window in which I
> pack Some label widgets, entry widgets and also Text widgets. When I say
> gtk_widget_show_all( GTK_WIDGET( Window ) ), I get a segmentation fault.
> When I debug and see , I get an error in gtk_widget_show
Jyothi wrote:
> I have a problem in displaying the drawing area. I create a window and
> in that I create a Drawing area and put it in a box and then In that
> Drawing area I am drawing some rectangles .
> Finally I call gtk_widget_show_all(
> GTK_WIDGET( Window ) ). Only the Window is coming up
neeraj sharma wrote:
> How can
> I change my mouse pointer when it is over a button and
> how when an application is opened.One more thing In
> gtk can we find out if an application is running or
> not.
You need to use a gdk_cursor. Something like:
GdkCursor *cursor = gdk_cursor_new( GDK_TO
Peter Jay Salzman wrote:
> currently, my code is kind of ugly because i need to convert back and
> forth between standard and glib data types. i'm using flex/bison to
> handle user input (i'm a flex/bison newbie). basically, yytext is put
> into a union depending on the data type:
>
>%unio
James Vanns wrote:
> Okay. I have a function called create_toogle_window (). Within this
function
> I have a few GtkWidgets initiated as GtkToggleButtons (3 of) and then one
OK
> button.
>
> I have also a struct defined as within a header file:
>
> typedef struct _options {
>gboolean bss;
>
I'm writing an app using xlib, but I need some buttons and menus.
I've done this a little. It's dangerous, unsupported and will probably
break if gtk/gdk changes much, but it does sort-of work.
- to keep gtk happy, you must do this several times a second:
while( g_main_iteration( FA
Wolfgang Rupprecht wrote:
> I need to find a way to efficiently display a small subsection of a
> very large (50 megapixel or more) 8-bit graymap.
Hi Wolfgang,
You have lots of choices.
The lowest level is gdk_draw_grey_image(): this paints a section of a
large image onto a section of the scr
neeraj sharma wrote:
> I am working on gtk and I want to run an already
> created application from my program on button click.
Hi Neeraj, can't you just use system()?
static void
my_click_handler( GtkWidget *button, gpointer client )
{
system( "xterm &" );
}
John
===
Andrej Prsa wrote:
> I have a bunch of widgets locally declared. One of them is a spin button,
which I use to set/unset the sensitivity of 100 other widgets. Thus I use
"changed" signal to invoke my sensitivity set/unset routine. How do I pass
names of those 100 widgets to that routine? I really
Nuno Afonso wrote:
> On Wed, 2001-12-12 at 00:53, Norman Black wrote:
>
does anyone know how to make an drawing area to recieve the key events?
>>>gtk_widget_set_events(area, GDK_KEY_PRESS_MASK|GDK_KEY_RELEASE_MASK)
>>>
>>You also need to make sure it has the GTK_CAN_FOCUS flags.
>>
>
Stefan Doehla wrote:
> I'm stuck in a little problem with my sliders ...
> I'm writing a oscilloscope and need a slider with
> values on a log-scale (or something similar).
Hi Stefan,
I did a little slider class for my app. It's a slider with no label,
with a text box (GtkEntry) next to it. I
Hi Troy,
http://developer.gnome.org/doc/API/gtk/gtkeditable.html
in the signals section, near the bottom of the page.
John
Troy Heber wrote:
> Thank you activate is exactly what I was looking for. Can you point me to
> where the is documented, so I can avoid having to bother the list with
su
Andreas Schiffler wrote:
> I am trying to figure out how to create an image widget that can be
> embedded in a popup window.
>
> I am starting from a 32bit RGBA data array (which is in fact a 32bit
> SDL_surface's pixel data).
Hi Andreas, is this gtk 1.2? As far as I know, the easiest way is
Olaf Frączyk wrote:
> On 2001.11.15 13:50:54 +0100 John Cupitt wrote:
>
>> Hi Olaf, could you post a test program that shows this bad behaviour?
>> It'll save us each making one :-)
>>
>> (maybe you have auto_sort turned on? turn it off, insert 6000 times,
Olaf Frączyk wrote:
> On 2001.11.14 17:04:04 +0100 Olaf Frączyk wrote:
>> As I found inserting 6000 nodes takes 4.5 second (+/- 100 msec) on
>> Celeron 466 with no load.
>
> Oh, I found whats happening. If sibling == NULL this takes so much time.
> If sibling != NULL it takes 0.065 second.
>
>
Zielinski Zbigniew wrote:
> Hi!
> How to increase number of colors in GDK. J have only 64 colors.
Hiya, you could try gdk_rgb_set_min_colors( 128 ), it sometimes helps
(depends a bit on your version of gtk).
John
___
gtk-list mailing list
[EMAIL
Jean-Christophe Berthon wrote:
> I would like to do a kind of graphical application with a DrawingArea,
> rulers and scrollbar. And I'm stuck with the management of the rulers and
> the scrollbar together.
Hi Jean-Christophe, make a 3 x 3 table, put the viewport (with the
drawing area inside)
Thomas J Lewis wrote:
> how can an option menu be dynamically rebuilt?
>
> basically need to find out how many items currently are on the list,
> delete those items then rebuild the list.
Hi Thomas, you can do this just by setting a new menu ... when you call
gtk_option_set_menu(), it'll unre
Evan Van Dyke wrote:
> Evan Van Dyke wrote:
>
>> I am working on an application where I wish the background color
>> for a GtkListItem to be different from the background color of the
>> GtkList. I have tried setting the bg/base fields of the GtkListItem
>> but this doesn't appear to help. Nee
Hi Skip, I don't know if this is still true for 1.3, but with gtk 1.2
you got a core if you removed the item with focus from a popup list. I
worked around this by doing a gtk_widget_grab_focus() somewhere else
before doing the delete.
John
Skip Montanaro wrote:
> I can stimulate a segmentati
Hi Raymond, I think this happens because under Linux the dynamic linker
does not work in statically linked executables. If you want to use
dlopen()/dlsym()/etc. (these are the calls wrapped by gmodule on linux),
you must, at a minimum, link dynamically against libc and libdl.
I sort of remembe
[EMAIL PROTECTED] wrote:
> I have made an application with Glade using GTK. The
> GUI application loads a text application in a child
> process. Both are communicating via pipes.
> The standard input and output of the text application
> are redirect in the pipes.
> When this window appea
>>is it true that there is no way to tell a gtk file selection to refresh
>>its directory contents (gtk 1.2.10)?
>>
>
> double-clicking the . directory forces a refresh of the files
> listed, but I'm not sure if there's a way to trigger this from
> the application.
Hi, you can force a refresh b
Sanjay Bhatnagar wrote:
> Is there a widget which would read an html file and display is
> properly (with hotlinks etc.)? One with some help/doc/examples would
> be most useful.
I think gtkhtml does what you want:
ftp://ftp.gnome.org/pub/GNOME/unstable/sources/gtkhtml
___
Jean-Christophe Berthon wrote:
>
>>>> I want to use the EXTENDED selection mode of the CList to allow the
>>>> user to select multiple row using primarirly the control and shift
>>>> key... The problem is that in the documentation it is precise that
>>>> the field selection of t
HaB JacKaL wrote:
> I have checked and double checked all my declarations. I finally ran it
> through gdb, which reported the following error:
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x4015d8a8 in gtk_type_check_object_cast () at eval.c:41
> 41 eval.c: No such file or d
Hi Jean-Christophe,
Unfortunately I don't think this is possible. You can use
g_log_set_fatal_mask() to say which sorts of errors are fatal, but
G_LOG_LEVEL_ERROR is always set fatal whatever you do.
I think this was decided because for a GUI library, it's very hard to
recover reliably from o
of gtk_create_ctree).
> can you help me in thiz case?
> more, i'm working with gtk 1.2 (not 2.0)
>
> John Cupitt wrote:
>
> > Giovanni Masullo wrote:
> > > can anyone tell me how i can capture the mouse
> > > right click on a tree item?
> > > i w
Giovanni Masullo wrote:
> can anyone tell me how i can capture the mouse
> right click on a tree item?
> i would like to do that to putting up a popup menu
> related to that item.
Hi Giovanni, for CTree (I guess you are using this?) attach to the "event"
signal, use gtk_clist_get_selection_info()
Paul Davis wrote:
> >> Related question... If I add a 10x10 pixel wide pixmap to a button, will
> >> the button request a size of 10x10 or is there some implicit border? Just
> >> in case, hypothetically I wanted to tile a region with buttons containing
> >> pixmaps... ;-)
> >
> >Hi Skip, no, I
Remco Poelstra wrote:
> What's the differences between all the gtk-engines that come with my
> distribution?
> And how can I use them?
You make a file in your home area called ".gtkrc", and add a line like:
#include "/usr/local/share/themes/Metal/gtk/gtkrc"
AFAIK, the theme swapping pan
Farhan Chaudhary wrote:
> Can anyone plz tell me the difference between GdkWindow & GtkWindow?
OK, I'll have a go :-)
GTK comes in two main layers.
GDK is the drawing kit ... it has functions to draw lines, paint characters, and
reserve areas of the screen for applications. A reserved area of
Skip Montanaro wrote:
> John> It's easy :-) make a button with gtk_button_new(), then add a
> John> gtk_pixmap to it with gtk_container_add().
>
> Related question... If I add a 10x10 pixel wide pixmap to a button, will
> the button request a size of 10x10 or is there some implicit borde
Louis Lu wrote:
> Is there anyone who have used(created) a bitmap button
> before? Could someone teach me how to do it? or related
> information. Thanks in advance
It's easy :-) make a button with gtk_button_new(), then add a gtk_pixmap to it
with gtk_container_add().
John
_
Marco Lettere wrote:
> I would like to show an already created widget in a handler of a "changed"
> event related to another widget. This clearly doesn't work until I somehow
> force gtk to redraw. But how do I obtain this?
Hi Marco, you need to get gtk's drawing handler running. Take a look at t
Louis Lu wrote:
> I have done a program and created a icon link to this program
> on Xwindows desktop. I just want to know whether or
> not there is a way (in gtk and gnome)that can add a hot-key
> in the program, so later on, I can use the hot-key to execute
> this program instead of using m
Charles Waldman wrote:
> I am working on an application where it would be really nice to be
> able to put a button widget inside of a clist or ctree cell.
Hi Charles,
ctree/clist is being replaced in the upcoming (a few months away?) gtk-2.0, so I
don't think anyone will work any more on the old
Don't listen to any of them :-)
If you want to change the behaviour of progress bar significantly, I think it's
best to wrap it up as a new widget. GTK makes building widgets very easy (at
least, easier than many other toolkits), plus if you end up with something
useful, it's then very easy to re
"[EMAIL PROTECTED]" wrote:
> I have a progressbar in my gtk window. In a loop
> while, I increase the progression of the bar and i
> write gtk_widget_show_all(GTK_PROGRESS(bar), pos).
> But Gtk doesn't redraw the window. I would like to
> know if there exists a function to do that.
Hi Arno, there
"[EMAIL PROTECTED]" wrote:
> Please have you any idea how to have a transparent window withe some labels?
Hi, do you mean like MacOS X? Basic X (and hence GTK) does not do transparent
windows unfortunately :-( This may change in a year or two ... there's a new X
thing on the way (Xrender) that ad
Felix Braun wrote:
> I'm having problems getting an OptionMenu to take the right size, i.e. in
> a way that its children are displayed properly.
Hi Felix, you need to show the menu pane to get it to size correctly. Add
gtk_widget_show_all(menu);
just after your last gtk_menu_append().
Elfriede Eisserer wrote:
> How can I overgive a gtk-widget or Object to an funktion?
Hi Elfriede, you can just pass a pointer to the widget.
There's a spin button example in the gtk tutorial:
http://www.gtk.org/tutorial/sec-spinbuttons.html
John
___
Jim Edwards wrote:
> I´m trying to chase memory leaks in a farily large program. I´ve tried
> memprof but for whatever reason it doesn´t work, so I´m using mtrace.
Hi Jim, memprof is great, it'll tell you exactly what you want to know. How
exactly are you running it? What is not working? It's be
Ecmel Ercan wrote:
> I am working on a GTK+ program with a tabbed interface. Each tab can
> display same or different kind of a container widget. It is like MDI.
>
> I have an Edit menu and this menu contains actions which are common to
> all documents. The actions will be handled on a differe
Filipe Bonjour wrote:
> I have a "Connect" button, and in its callback for "clicked" I call
> gdk_window_set_cursor(GDK_WATCH), then call another function to perform
> some tasks, and when this returns I call
> gdk_window_set_cursor(GDK_LEFT_PTR) to return to the normal cursor. What
> I hoped woul
mingd wrote:
> Gtk style(gtkrc file) works on all the widgets in my programs, except
> the "Fixed" widget. I tried to attach a bg_pixmap to a "Gtk::Fixed", but
> it never worked. Can somebody tell me why?
I think GtkFixed and GtkLayout simply don't support background pixmaps. I don't
know if this
Hi Robert, return FALSE from the delete_event signal on the window.
Robert Bui wrote:
> Does anyone knows how to disable the "CLOSE" on menu from window globally within
>application?
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.or
David Robin wrote:
> gtk_menu_popup(
> GTK_MENU (context_menu),
> GTK_WIDGET (NULL), // GtkWidget
> *parent_menu_shell,
> GTK_WIDGET (NULL), // GtkWidget
> *parent_menu_item,
> GTK_SIGNAL_FUNC(NULL), // not r
Emanoel Guimaraes Martins Filho wrote:
> I'm trying to use a big pixmap (640x480) to show some
> estatistics, drawing rectangles and lines in the pixmap. The screen must be
> update each 5 seconds. However, the consume of memory reaches the size of
> the swap after some minutes and the program is
Mattias Persson wrote:
> GList * files = NULL;
> //nextfile is a string
> files = g_list_append(files, nextfile);
>
> later on when a GtkList is created I try to add the
> GList to it:
>
> gtk_list_append_items(list1, files);
>
> but that gives me a segmentation fault.
I guess nextfile is bein
Ian Britten wrote:
> > For printing, I just output postscript and leave all the mess for the
> > printer to deal with. As long as the user has a nice printer, you're
> > fine ...
>
> Do you do this via the GDK interface, or to you do use a separate API?
> I haven't seen a way to get GDK to output
Ian Britten wrote:
> It's a similar case with the gtkpixbuf: I tried using it once on a
> relatively small arial photo (50M). After it crashed X and hard-locked
> the machine, I didn't try that again... :-(
> [ FYI - +200M images aren't out of the realm of possibility... ]
I believe gdkpixbuf,
Skip Montanaro wrote:
>
> Flavio> I need to print float numbers in a gtk label and this widget
> Flavio> only accept gchar in your text parameter, I want to know if
> Flavio> exists some type of routine that changes float number in format
> Flavio> a.bcde to char format "a.bcde".
Tom Morton wrote:
> How do i get a GtkTable to contract when i hide() a row of stuff it contains?
> It simply adds more space between the remaining rows (unless i resize the
> window slightly, then it shrinks. can i make it do that myself?)
This one I can help with: just do a gtk_widget_queue_res
Flavio Alberto Lopes Soares wrote:
> > I search in GTK reference manual for GTK_BUTTON() & GTK_BIN and
> > GtkWidget structure for my study and I can't found any reference,
> > somebody can say where I can find any reference for this ?
Here's the GtkButton reference:
http://developer.gno
"G.Camozzi" wrote:
> In gtk+ there is command like execlhow can i use a shell command
> with GTK+?
Hi,
>From C, you can just use system(). This may limit your portability
though :-)
John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gno
Owen Taylor wrote:
> Tim Butler <[EMAIL PROTECTED]> writes:
> > Can anyone give me pointers to some code that uses the function:
> > gdk_input_motion_events() ?
>
> The normal place to get them would be from timestamps from
> motion events.
>
> The idea is that you can get fine-grained history b
ldx wrote:
> How can I determine which menu item the mouse is pointing to?
> When I move mouse on menu items, I want to print a message to the
> statusbar to tell the user something about the pointed menu.
Hi, connect to the "select" signal.
gtk_signal_connect( GTK_OBJECT( menu_item ),
Linux Developer wrote:
> 1) How can I change background
>and foreground color
>of label, button and columned list and
>ofcourse other widgets. I have tried
>the .rc file approach and some other
>approaches but failed.
There's a FAQ entry on this:
http://www.gtk.org/f
"Andrés Giraldo" wrote:
> sorry! I didn't expose my question well.
>
> I add a drawing area as a container in a button
>
> gtk_container_add (GTK_CONTAINER (button),
> drawing_area);
>
> Then I connect a expose_event signal to the
> drawing_area, and finally I want to change the drawing
> area
Ignacio Nodal wrote:
> When creating a menu using radio items and showing all toggles with
> "gtk_check_menu_item_set_show_toggle(GTK_CHECK_MENU_ITEM
> (menu_item),TRUE)", how can I force a different menu item specified by
> index to be selected?
Hi Ignacio, I'm not sure you should be using radio
"Andrés Giraldo" wrote:
> After showing a drawing area widget:
> gtk_widget_show (drawing_area);
> can I adjust the drawing area size?
>
> gtk_drawing_area_size (GTK_DRAWING_AREA
> (drawing_area), width, height);
Hi Andrés, yes, this should work. Do you want the window enclosing the
GtkDrawi
on them...
Hi Andrés, I think you need gtk_widget_set_sensitive().
> I'm trying to build a button using just a drawing area
> and drawing it, but I would like to use a most natural
> way to do it
This will probably break (or look bad) with themes :-( why not use a
standard button?
John
-
Ignacio Nodal wrote:
> How is the easiest way to create a pulldown menu which item is a list of
> check or radiobuttons??
Hi Ignacio, testget.c does this, so you could just cut and paste
sections of that. You can also do it with ItemFactory, there's a (rather
skimpy) example in the tutorial.
Jo
Arno wrote:
> I would like to know if it's possible to disable the resizing of a window.
Hi Arno, you need gtk_window_set_policy().
John
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list
Jan-Marek Glogowski wrote:
> > > 3. Quick way to find the best font to fill an area
> >
> > I believe when you load a scaleable font, X prerenders all the glyphs in
> > the font to bitmaps, ready to send to the display ... this is pretty
> > slow (and used to lock the X server while it did it, tho
Jan-Marek Glogowski wrote:
> 1. Positioning of windows
Hi Jan,
I use gdk_window_get_root_origin() and gtk_widget_set_uposition().
> 2. Show / Hide a window on the same virtual desktop
Good question, but I can't help :-(
> 3. Quick way to find the best font to fill an area
> First I check if
Craig Emery wrote:
>
> After setting up the menu with the item factory I use
> gtk_item_factory_get_widget ()
> to get the widget that's created with the path of the item I want.
>
> Then (if, say, it's a check-box item) you can call
>
> gtk_check_menu_item_set_active (...)
>
> might not be th
Filipe Bonjour wrote:
> II have several drawing options, and I want to send the
> GtkGlArea widget an expose event when the user changes any of these
> options.
Hi Filipe, I think you can just do:
gtk_widget_queue_draw( widget );
This deals with all of the signal stuff for you.
HTH, J
Alexandre Mathy wrote:
> I'm building an inteface for which I need stackable pixmaps..
> Now I have read that this can't be achieved using a gtk_pixmap,
> and that I'd have to use Gdk stuff instead.
> However, these pixmaps need to be able to recieve click events etc...
I think the gtk_canvas wi
Hi Ronald,
Ronald Bultje wrote:
> color.red = (guint16)(options->colors[0]*65535.0);
> color.green = (guint16)(options->colors[1]*65535.0);
> color.blue = (guint16)(options->colors[2]*65535.0);
In my app, I use a 1 bit pixmap (bitmap), since every
"David J. Topper" wrote:
> But even if I capture the relevant info for "changed" I can't use it to
> create a new signal. The arguments for gtk_signal_new() are elusive to
> me. I'd basically like to create something very similar to the
> "value_changed" and "changed" signals, named "activate."
Ronald Bultje wrote:
> does Gtk or any other lib offer the option to render texts to a drawable
> or a RGB-buffer (in the best case: a gdk-pixbuf)? In the best case, it
> would work something like some_function(char *font, char *text) (font
> being the font as provided by the gtk-font-selection-di
Louis Lu wrote:
>I just wondering whether or not anyone who has the experiences on memory map io
>function before?
>
> My code is as following:
> int *base;
> unsigned int fd;
> fd = open("dev/mem", O_RDWR);
> base = mmap(0, 0x8, PROT_READ|PROT_WRITE,MAP_SHARED, fd, 0xd80);
Lokesh Setia wrote:
> First of all, I will like to ask whether drawing_area widget with a
> backing pixmap is the best choice for this?
Hi Lokesh, the way to do this by hand is to use gdk_rgb_*(). Take a look
at testrgb.c in the gtk source area.
gdk_rgb_*() does all the horrible X stuff for y
Vicki Stanfield wrote:
> I know that I can get the parent of a widget, but if I have only the
> parent widget, can I get the children? I need to unrealize most of the
> widgets to change the window.
Hi, if it's a subclass of container, you can loop over widget->children.
Something like:
/* Set a
Sergio Arregui Ojeda wrote:
> i have to develop a system that has to plot data that is acquired
> trhough the serial port, i have done most of this part using
> the realtime plot demo that comes with extragtk, but i have a problem
> because it's a lot of data and my machine gets very busy
> while
±è¿ëÀÏ(yong il.kim) wrote:
> please help me!! I am beginner GTK+ programming. when i compiled
> sample code(hello.c), there are error message
>
> usr/include/glib.h:66:glibconfig.h not being able to find glibconfig.h
Hello, is this the example from the tutorial?
http://www.gtk.org/tutor
Raymond Wan wrote:
> My GTK+ program is getting fairly large and until now, I've had
> one big global variable structure that has all the information I need. I
> was wondering if there is an alternative to this.
Hi Raymond, there are lots of ways to fix this.
One of the easiest is to ha
dodi-nug wrote:
> There is a lack of how to draw graphic using gdk.
> so if you guys have an example to draw a simple x=y graphic,
> please tell me.
There's the scribble example in the tutorial:
http://www.gtk.org/tutorial/ch-scribble.html
For fancier GDK stuff, any source covering Xlib
Lokesh Setia wrote:
> o When the file selection widget is used in the context of "Save as",
> the filename goes off as soon as the directory is changed. Is it a
> bug in gtk+ 1.2? Or a feature that can be changed?
It's a feature that can't be changed :-) Lots of people have done new
filesel
dodi-nug wrote:
> i failed to get text from entry text's widget, it seem that
> in gtk tutorial page(www.gtk.org/tutorial/sec-textentries.html)
> doesn't work too.
> i have tried gtk_editable_get_chars ( Mr. bowman's advise),
> but i didn't work too.
It should work. Try:
char *txt = gtk_
301 - 400 of 471 matches
Mail list logo