Sailaxmi korada wrote:
My application has to display around 3000 toggle buttons, in 178 rows of a
table. It is taking almost 12 seconds to do so.
Can you help me out in reducing this time.
Here are the two steps that are consuming maximum time
gtk_button_set_label
Tristan Van Berkom wrote:
Gus Koppel wrote:
Sailaxmi korada wrote:
My application has to display around 3000 toggle buttons, in 178 rows of a
table. It is taking almost 12 seconds to do so.
Can you help me out in reducing this time.
Here are the two steps that are consuming
Vladimir wrote:
Thanks a lot for comprehensive explanations.
There are two uses of GTK+ in non-main threads:
1. error reporting via message boxes and
2. adding text (which comes from network) to GUI windows.
I can do both of it in main thread but this involves copying text to
Vladimir wrote:
There are two uses of GTK+ in non-main threads:
1. error reporting via message boxes and
2. adding text (which comes from network) to GUI windows.
Btw, if you don't use modal message box dialogs then there is absolutely
no need to use multiple threads (aka one to receive, the
Gus Koppel wrote:
Vladimir wrote:
There are two uses of GTK+ in non-main threads:
1. error reporting via message boxes and
2. adding text (which comes from network) to GUI windows.
Btw, if you don't use modal message box dialogs then there is absolutely
no need to use multiple
shibu alampatta wrote:
during runtime I'm getting the message
Xlib:unexpected async reply (sequence 0xbe8)
while trying to show a window.
The senario is , In my multi window application,from a thread i'm calling a
function, which contains the lines as below
GtkWidget
Gonzalo Aguilar Delgado wrote:
1.- Passing a data structure
2.- Using global variables (not good threading support)
3.- Passing window to gpointer and searching.
But the point is.
What is the best way? Is there any other way to do that? Because
structure option looks
Vladimir wrote:
I'm writing program with several threads each of which uses gtk.
I need to wait for one of the threads in gtk-generated callback. I can't do
it directly because of gdk lock. So the question is: can I temporarily
release gdk lock in gtk-generated callback ? Will it cause any
Doug McLain wrote:
I am trying to reduce the spacing between rows of text in a single
column treeview. Ive been experimenting with both the ypad and height
properties. They both work in adding space, but neither will take any
space out. Seems like anything less than about ypad=3 doesn't
Michael L Torrie wrote:
On Sat, 2006-03-18 at 00:38 +0100, Gus Koppel wrote:
However, then you would have to manage all tasks the window manager
takes care of by yourself, i.e. minimizing and maximizing the window on
request and providing correct drag behaviour. For resizability of your
jim Pharis wrote:
I have an external synchronous library call that takes a while to
complete. I want to display a progress bar well I'm waiting.
The problem is, even when the progress bar is in the thread in a loop
calling gtk_progress_bar_pulse, the progress bar still looks like its
Chris Vine wrote:
On Saturday 11 March 2006 22:36, Thomas Okken wrote:
[Using a pipe] is generally the best way of dealing
with asynchronous (Unix) signals, but for simple
cases another approach is just to set a flag of type
volatile sig_atomic_t in the Unix signal handler,
and
kadil wrote:
I may not have explained myself very well in my question to the
world. To describe it in words, I want:
(1) the first child to be in the column next to the parent.
(2) subsequent children to be below the first child
(3) parent cells are to vertically span the child rows
(4)
kadil wrote:
I don't think a treeview can render this tree structured data that way I
wanted. The way I want it and the type of data is shown below:
| Function | Funct Failure| Failure Mode |
Nimmo, William K @ TITAN wrote:
I apologize if this has been addressed previously. I have bought Syd
Logan's book GTK+ Programming in C. The link referenced in the book
to obtain sample code is a dead link. Does anybody know where I can get
the sample code?
You should either
1. ask the
shibu alampatta wrote:
On pressing a button i wanted a list of text to be displayed on entry
widget, on after the other ( in a for loop), with some delay, say
sleep(3). but the problem is the last text only getting visible. if i
increase the sleep argument then also the same. any
Daniel Atallah wrote:
On 2/15/06, Matt Hull wrote:
that like what gaim does ?
Yes, gaim does essentially the same thing.
http://cvs.sourceforge.net/viewcvs.py/gaim/gaim/src/gtkidle.c?rev=1.12view=markup
On Wed, 15 Feb 2006, Martyn Russell wrote:
Gossip needs to know how long the
sadhees kumar wrote:
In my GTK application, If no action(event) is taken place in
the screen, I need to turn OFF the backlight of an TFT monitor. If any
key pressed, or mouse movement occured, I need to turn ON the
backlight.
I have the API for toggling the backlight. My problem is
Fernando Apesteguía wrote:
I'm developing an app with gtk. I use glade for GUI development. My question
is about the different kinds of layouts. I would like my app resizes by
itself when a label text is really long. I've noticed I can do this by
placing a table layout (I think vbox and hbox
Fernando Apesteguía wrote:
First of all, thanks for your suggestions.
Actually my app. uses a static layout and the GtkLabels inside this, don't
grown when the text becomes longer. The same GtkLabel behaves ok if it is
inside a GtkTable. So I think I will change the static container.
By
MEA-Mike.Friedrichs wrote:
This may be the wrong place, but since I have a question about Gnome,
which is built with GTK+, I may be in the right place.
I have installed Novell's Suse 10.0 and having problems getting the
font to show their true colors and sharpness on the edges.
When I
Ed Kutrzyba wrote:
I am developing an application that controls a Data Collection
System. I used glade and anjuta for my GUI and C backend control coding.
My program works great, but I need to add some extra backround tasks:
1) I need to run a script (perl or bash) on demand without
Nisha P Kurur wrote:
We are trying to create a gtk application which should run without much of
manual intervention. Few buttons are placed in a row and each button has
an image at the top which changes to red on selection. This image changes
to green when the button goes out of selection.
Amitesh Singh [EMAIL PROTECTED] wrote:
How to Draw a Window without an option to Maximize it ?
i have also tried to do the same using gdk_window_set_decorations ();
but its not working !! :(
gdk_window_set_decorations() is basically the right function call to
achieve what you intend,
Bartek Kostrzewa wrote:
Also, since my goal is but the printing of an image I was wondering
whether you knew of some simple way of passing the image to something
else and having it print it. Any help is greatly appreciated.
Perhaps a look at the printing code of The Gimp could provide you
yeajchao wrote:
However, the need for some applications to use fixed colours like
green, yellow and red to indicate things like error-free results,
warnings, error messages or critical choices / operations is
recognized. That's why you can rather easily change colours and
appearances of
yeajchao wrote:
I have a question about GtkcomboBox
You know,every combobox have a GList which stores
some optional item.
My problem is about the GList.
When I click the triangle to pull down the list,
and move my mouse to select item,
the highlight item
Georg Fritzsche wrote:
I have a question about GtkcomboBox
You know,every combobox have a GList which stores
some optional item.
My problem is about the GList.
When I click the triangle to pull down the list,
and move my mouse to select item,
the
Suresh Stephen wrote:
I have created a GUI using GTK and i have created a dialog
box which will contain multiple entries. In the following
fashion
entry 1entry 5
entry 2
control H wrote:
Well, I must admit that I haven't used Windows more than occasionaly
for the last three or four years, but the last time I checked,
Windows combo box was much _worse_ than GTK+'s, in my opinion. You
would often get a five-line combo where you'd have to scroll like
hell
Nikolaj Kiær Thygesen wrote:
How on earth do I open a window containing a couple of widgets,
one of which is a ScrolledWindow?? This ScrolledWindow displays
an image, and now I'd like to fit the size of the ScrolledWindow
to the size of the image in pixels.
I have
Daniel Ferreira Monteiro Alves wrote:
Anyone knows if the gtk support sub-windows?
Yes I do + no it doesn't.
I suppose you're referring to WiW (windows in windows) which are
user-arrangeable MDI subwindows as known from MS-Windows and QT
applications. They're not supported by GTK+ because too
Stefan Kost wrote:
[...]
Therefore the scrollable windows is needed if the height of the
window would exceed the screen height. Anyway if it does not,
I'd prefer to make the window as tall as possible to show the
entries without needing to scroll.
I am not be able to achive this yet.
I
Olivier Sessink wrote:
Gus Koppel wrote:
What sort of 4 byte information is to be stored, if I may ask? Is it
to be referenced mainly by entry numbers (1st, 2nd, 3rd, ... atom)
or by contents, i.e. locating atoms that contain particular values?
Possibly for your app GMemChunks
Olivier Sessink wrote:
I was considering to use the GMemChunk infrastructure for some of my
code, where often 50 till 5000 structs of 4 bytes are allocated. I
will use the G_ALLOC_AND_FREE mode, because many items are not used
after a while, but not all.
I am, however, wondering if
César Leonardo Blum Silveira wrote:
Thanks for your answer!
So, as my app is a Glade app, I can use that lookup_widget() function
you mentioned? Otherwise I would use your function :-)
That's correct. For fully Glade-built UIs both functions are usable.
Mine is just a more generic version
Allin Cottrell wrote:
I've successfully used memprof for leak-checking my app in the past,
but on trying it recently something odd happens: memprof starts up
OK, and it also starts up the target program, but the target program
is not visible (doesn't appear on screen) and memprof records
Tristan Van Berkom wrote:
Every widget callback comes with a user_data argument,
and you can pass the desired data through that argument
(which is just as fast as using a global variable and is
just as clean as using a lookup_widget type of routine).
Right. However, if you want your signal
César Leonardo Blum Silveira wrote:
I have a few doubts about the way I code my GTK applications. One of
them is: Is it ok to use many global variables for the widgets? For
example, in a glade app where callbacks are of the form
void callback(GtkWidget *widget)
I can only have access to
Yogesh M wrote:
found it, sometimes it is neccessary to avoid
confusion.
for example in a dialog i have a cancel button, now if
the window show a close button, it is a confusion that
whether the window closes or the cancel activates or both.
It's common convention that title bar close
Arx Henrique wrote:
my doubt is g_free or not g_free the text?
When in doubt, read API docs:
Tks x)
next time i'll read api
While the case of returned const gchar *s is rather simple, the real
problem to me is that the API docs are quite less explicit when it comes
to more complex
Gowri Kandasamy wrote:
Does applications built on GTK 2.2 work with gtk2.6 ?
Generally yes. However, there are some incompatibilities in undocumented
internals between 2.2 and later versions, which sometimes may affect
compatibility of applications to particular GTK+ versions, even if they
[EMAIL PROTECTED] wrote:
i'm new in gtk and i have to develop an application with a lot of
windows. I remember that with delphi, it is possible to open a window
in the mother window. Is it possible with gtk+ ?
See:
http://mail.gnome.org/archives/gtk-app-devel-list/2003-August/msg00396.html
Ricardo Malafaia wrote:
well, my Makefile is like this now
PREFIX=/mingw
PATH=/d/GtkWin/bin:/usr/bin:/bin:/mingw/bin
CPPFLAGS=-O2 -I/d/GtkWin/include
PKG_CONFIG_PATH=/d/GtkWin/lib/pkgconfig
LD_LIBRARY_PATH=/d/GtkWin/bin:/d/GtkWin/lib:/lib:/usr/lib:/mingw/lib
GTK_CFLAGS=`pkg-config
Alf Stockton wrote:
I have a screen already built using Glade and a whole bunch of code
that now needs maintaining.
Is it recommended that I carry on using Glade?
There are no alternatives for GTK+, except if you're willing to code
either C source or XML by hand to design your GUI.
Glade
Freddie Unpenstein wrote:
You're going backwards here... Having the code generation part of
Glade limits you to what the Glade developers have done, and how good
they are at doing it. Having the code generation seperate, allows
someone else to take over that burdon, who could potentially be
Olexiy Avramchenko wrote:
If the idea about general tool for XML - C translation, sounds good
for you - start development. I think all interested people will help
you.
I don't think so. The idea about a general XML -- C translation tool
doesn't sound good to me and I won't start development
Olexiy Avramchenko wrote:
Freddie Unpenstein wrote:
That doesn't mean generated code shouldn't be available for those
who consider it the best solution to their particular needs. Write
a utility that reads in .glade files and outputs code. Call it from
your Makefile to ensure the
Maciej Katafiasz wrote:
Unless by build of glade you mean autogenerated C code, which
is bad, bad, bad thing to use. Use libglade, really.
why it is bad? I use it and it works just fine and I don't have
glade dependiencies.
Because it makes it impossible to later rework UI without
Vinod Joseph wrote:
Sorry for the confusion
Yes, I'm afraid your description was confusing to some people.
Anyways.the major problem for design is with browsing password
entries stored as ASTERISK in GtkList..
The problem is with password entry stored as *
I don't understand
50 matches
Mail list logo