Hi list,
I'd like to change the pallete of a pixmap at the runtime of my gtk program.
I have a simple xpm as follows:
static char * my_xpm[] = {
"5 5 3 1",
" c None",
". c #00",
"+ c #FF",
" . ",
" .+. ",
".+++.",
" .+. ",
" . "};
and I'd
On Sun, Jul 15, 2001 at 03:23:46PM -0400, Paul Davis wrote:
> create two pixmaps from XPM's. then create a third, and use gtk_pixmap_set()
> to alternate between the two colored ones. its very trivial.
That worked... really trivial.
Thanks
Pedro
_
Hi,
I need to run some routine periodically (twice/second).
How can I register some signal that calls some routine periodically?
I do not need a very accurate timer.
Thanks,
Pedro
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.
Hi,
I have a routine that makes a lot of math stuff and takes about 60 seconds to run.
While this routine is running, the Gtk program seems staled. It doesn't respond to
resizes and if I change the focus to another program and go back to it, it's window
keeps all grey and just redraws at
On Sun, Jul 22, 2001 at 01:14:01AM -0400, jordi wrote:
> I don't see how the progress bar grows. Only I see, first an empty value and
Hi Jordi,
http://www.gtk.org/faq/
topic 5.14. Why doesn't my widget (e.g. progressbar) update?
Maybe that would help you.
Regards,
Pedro
On Sun, Jul 22, 2001 at 11:41:31PM -0400, jordi wrote:
> g_main_iteration (false);
change it to: while( g_main_iteration( FALSE ) );
if your window had more than one widget that was updated, it will wait for all the
widgets to be updated.
PS: when writting about the same thing, replying the o
Hi list,
The program that I'm developing has some critical situations that I want it to show
a message and the user will be able just to click on buttons in this message window.
All other windows in this program can't get focus.
I'm doing like this:
GtkWidget *winmsg1;
winmsg1 = gtk_win
Hi list, :-)
I need a program with two identical windows, so I did:
...
GtkWidget *winA;
GtkWidget *winB;
winA = create_winmon (); // <- creates my window with a button
gtk_widget_show (winA);
winB = create_winmon (); // <- creates another window just like the other
gtk_widget_show
Hi list,
When I do:
anc = gtk_widget_get_ancestor (button1, GTK_TYPE_WINDOW);
inside a button1 callback, it returns a pointer to the ancestor window.
But if I do it inside a menu item callback (changing button1 to menuitem1)
it doesn't work.
Any hints?
Pedro
___
On Fri, Jul 27, 2001 at 03:36:58PM -0400, Havoc Pennington wrote:
> > When I do:
> >
> > anc = gtk_widget_get_ancestor (button1, GTK_TYPE_WINDOW);
> >
> > inside a button1 callback, it returns a pointer to the ancestor window.
> >
> > But if I do it inside a menu item callback (changi
10 matches
Mail list logo