You can use gtk_widget_show to bring up your dialog, and then use
gtk_set_transient_for to mark it modal to only one window, to get
behavior similar to firefox.
-Jim
On Sun, Apr 11, 2010 at 10:36 AM, silverburgh
silverburgh.me...@gmail.com wrote:
On Sun, Apr 11, 2010 at 11:04 AM, Nicola Fontana
I've never come across this problem since I've never used any headers
that re-define NULL, nor have I used gobject with C++, but it seems
like enough of a gotcha that it might make sense to define another
constant (G_ARG_TERM?) that always maps to (void *) and use that with
all the glib functions
I use a GtkImage, and choose among GTK_STOCK_YES and GTK_STOCK_NO. At
least for all the themes I've tried it with, it either shows a
green/red ball, a check/cross or some variation, but imo, it gets the
message across.
2009/8/26 David Nečas y...@physics.muni.cz:
On Wed, Aug 26, 2009 at
Hi all,
I'm writing a program that, like gimp, has a control window, from
which users can open one or more viewer windows that present different
aspects of a data set (it's a weather radar display program). The
sub-windows are identical, and I'm using libglade and glade-3 to do
the interface
On Sun, Jul 12, 2009 at 3:46 PM, Tristan Van Berkomt...@gnome.org wrote:
On Sun, Jul 12, 2009 at 3:27 PM, Jim Georgejimgeo...@gmail.com wrote:
Hi all,
I'm writing a program that, like gimp, has a control window, from
which users can open one or more viewer windows that present different
Hi all,
I'm writing a program that needs to be single-instance. The program
will only run on gnome desktop machines. I'm using dbus to ensure
this, by having the program try a dbus rpc each time it starts. If
there's a running instance, it responds to the rpc by calling
gtk_window_present on the
It wouldn't matter too much, since most screens would only have a
refresh rate of 60-120 Hz, which is also much higher than what most
people can even see.
I've handled such cases by using g_idle_add when I get an update of the
variable's status, and have the idle function update the text box.
2008/11/16 Rorschach [EMAIL PROTECTED]:
Hi,
I wanna write a little battery-indicator in C with GTK. It's already working
nicly in the console and I know how to write a trayicon with gtk but what I
don't know is: how can I show the current capacity of the battery? I mean
shall I do 100
Hi All,
I'm trying to write a program that will minimize to a tray icon. I do
this by writing a handler for the window-state-event, and checking
the changed mask and new window state for the
GDK_WINDOW_STATE_ICONIFIED flag. It all works well, and I also add a
handler for the activate callback of
I should have mentioned that by time I want to call
glade_xml_get_widget() the GladeXML *xml created by xml =
glade_xml_new(filename.glade, NULL, NULL); is out of scope. If I call
open the file again to get the widget it has no affect on the running
window. I need to get the widget from
2008/7/15 Luka Napotnik [EMAIL PROTECTED]:
Hello.
I encounter a strange problem when I'm writing image data to the
GdkPixbuf data buffer.
I create an empty pixbuf and get the data buffer. Then I use:
pixel = pixbuf_data + i * n_channels
, where pixel is a pointer to the pixel,
Why not use gtk_window_fullscreen? I've only tried it on a Gnome
desktop, it works well.
On Sun, Apr 27, 2008 at 11:37 AM, Carlos Pereira
[EMAIL PROTECTED] wrote:
Hi there,
The small working code below shows
how my app goes fullscreen and back.
1) Is there a better way of doing this?
On Jan 20, 2008 12:35 AM, dev new [EMAIL PROTECTED] wrote:
hi
i am trying out the gtk tutorial with gcc (cygwin on winXP) and wanted
to run the first example in gtktutorial (to show blank window)..i
copied the code and compiled it with
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`
On Jan 6, 2008 7:13 PM, Bin Chen [EMAIL PROTECTED] wrote:
Hi,
Is there any type of IP address entry widget existed? I want to let
user input the IP address in dot form, and strict their input to
0-255.
Use a GtkEntry widget with a handler for changed, validate input there.
On Dec 25, 2007 9:50 PM, sumit kumar [EMAIL PROTECTED] wrote:
Hi All,
I am trying to use GLib double link list in my application.But I have a
problem. I run the GList sample program from Gtk+-2.0 FAQ:-
*snip*
*gint pos;
g_print(Enter Number1\n);
scanf(%d,pos);
list = g_list_append(list,
On Dec 6, 2007 4:46 AM, Lukasz Gromotowicz [EMAIL PROTECTED] wrote:
Hi all,
the problem is when loading windows from the xml file:
glade_xml = glade_xml_new(ami.glade,NULL,NULL);
I need to know the reference to main window (GtkWindow) to be able to
destroy it, yes?
I can get it like
On Dec 4, 2007 3:06 AM, Dan H [EMAIL PROTECTED] wrote:
Hello,
I like to build my GUIs with Glade, but as Glade is quite limited in what it
can do I usually write routines that finalize the GUI after the Glade stuff
has been set up. For example, in a current project I have a table which is
On Dec 3, 2007 3:57 AM, Guenther Meyer [EMAIL PROTECTED] wrote:
hi,
I have a hbox that looks like this:
-
| ||
| | |
| | |
| ||
On 9/6/07, okty [EMAIL PROTECTED] wrote:
Hi,
I am using GLib's memory profiling to check memory usage of my program. I
noticed that for each refresh in my screen with gtk_widget_queue_draw(), I
am checking my allocated memory and each refresh increases the size of
allocated memory. Do you
On 8/30/07, Marco Brambilla [EMAIL PROTECTED] wrote:
Hello everybody,
Firs of all I'm a newbye both to GTK and to this mailing list, so I apologize
for the triviality of the post.
I'm writing a very simple application (language: C) which should grab frames
from a ccd camera and show them
I have a question about the cross-platform compatibility of
GIOChannels, between win32 (using mingw32) and Linux, when using
pipes. I am using g_spawn_async_with_pipes to spawn a series of
programs that do some processing and deliver results. Specifically,
I'm using the Generic Mapping Tools
On 8/27/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi everybody.
I need a dialog in my application that simply show a label (so without any
button) and then hide itself after some processing occurred.
The problem is that I can't send any :response signal to the dialog, so it
remains
Not sure how you'd do this in gdk directly, but I can think of two alternatives:
a. Use Cairo (supports alpha channels, and gives you awesome-looking
antialiased triangles to boot)
b. Use gdk to render to 30 different GdkPixbufs, then composite them
together. The composite functions take an alpha
But, I wonder how can I communicate between two GtkWindow widgets.
Can you describe what you're trying to do?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
On 8/23/07, 张散集 [EMAIL PROTECTED] wrote:
Hi Jim,
Thanks for your reply. There is a figure.
Well, on the picture above, win_A is the main GtkWindow, win_B is a child
GtkWindow.
When I click the button on win_B I want to change the label_A's text.
That's it. If know how to do this, I
On 8/9/07, Carlos Savoretti [EMAIL PROTECTED] wrote:
Hi all!
Several objects within a program has a Xml buffer taken from
xmlDocDumpFormatMemory (), one for each of them. Only one of
those objects will be displayed at a time.
Question is:
Is it saved a lot a memory if I just keep the xml
On 8/7/07, Dave Howorth [EMAIL PROTECTED] wrote:
Users need to choose from a very long list of possibilities (approx half
million).
A neat interface that I saw for this (in Javascript IIRC) is to have a
combo box entry. As the user types the beginning of the name, the combo
box displays the
On 8/7/07, Dave Howorth [EMAIL PROTECTED] wrote:
Jim George wrote:
It may not be exactly what you want, but gtk_entry_set_completion might
help.
It looks interesting. I've found the page in the reference manual and it
says lots of things that sound intriguing but I'm having trouble
I'm trying to understand using Glade + libglade to build UIs. As I
understand it, if I use the glade_xml_signal_autoconnect_full call, my
signal connect function will be called for every defined signal in the XML
tree I am processing.
One of the parameters passed to my connect functions is
On 7/11/07, bert [EMAIL PROTECTED] wrote:
Hi all,
Is there a GTK widget to display audio or signal waveforms?
If not, is there a related project in which such a widget is available?
If you needed to display relatively short signals (a few seconds),
something like GtkDatabox would work.
On 7/3/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi all,
i am working on an embeded application over the TI OMAP 2430 SDP
and new to GTK.
i have a window with multiple text entries over it.
In my application since we dont have a keboard but only a keypad over the
target.. i m
On 6/26/07, Jim George [EMAIL PROTECTED] wrote:
[...] caused an infinite loop, because I'm trying to
do the following:
gboolean solar_cal_pixbuf_resize(GtkWidget *widget, GtkAllocation
*alloc, gpointer user_data)
{
GtkImage *img_widget = user_data;
GdkPixbuf *pixbuf
I do not follow this thread, but can't you just compare the
new allocation to the current one and do nothing when they
are equal?
That doesn't work, they seem to always be equal. I'm comparing the
allocation being passed to the alloc-event handler in the second
parameter and the allocation of
Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage
widget? I tried putting the GtkImage inside a GtkEventBox and
connecting a handler to configure-event, without success. I also
manually enabled GDK_STRUCTURE_MASK, even though GTK is supposed to do
that by default. I would like
On 6/25/07, Brian J. Tarricone [EMAIL PROTECTED] wrote:
On Mon, 25 Jun 2007 15:13:30 -0600 Jim George wrote:
Is there some way I can obtain a GDK_CONFIGURE event from a GtkImage
widget? I tried putting the GtkImage inside a GtkEventBox and
connecting a handler to configure-event, without
I want to derive a new class from GtkWindow to represent a top-level
window which contains objects from a Glade XML file. Since the
glade_xml_get_widget functions returns a new object, I'm not sure what
to do in the object's init_instance function to copy the properties
(and children) of the
On 6/8/07, Tomasz Jankowski [EMAIL PROTECTED] wrote:
Hi!
I'm working on small multi thread application based on Gobject. In one of
my
objects I have integer variable, which determine current object's status.
The problem is, that I need to read it's status really often, so it will
Begin Curiosity:
Also, the hardware must have something like the Pentium CMPXCHG8B [...]
Is it not
sufficient to be able to write an int in one single bus access? ie
have a 32-bit wide data bus
Or is that exactly the point? :D
No, in most cases, if you want to atomically increment or
On 5/26/07, Felipe Balbi [EMAIL PROTECTED] wrote:
Hello all,
my problem is the folowing...
I have a glade xml file being opened in my code...
I wanna use the same pointer to this XML file in other functions...
how could I do it??
I have the implementation below, but my signals are not
On 5/26/07, Felipe Balbi [EMAIL PROTECTED] wrote:
it's the glade_xml_signal_autoconnect
I define the name in the xml file and code the same name in the C language...
libglade does the connections :-p
easier.. and let my code be cleaner...
You need to pass -export-dynamic to ld in order to
Note that this is definitely not a recommended practice, GladeXML
objects should be dispensed with as soon as possible after interface
construction, its a heap of allocated strings that represents the
parsed state of the glade file; not only a practical hash table by
widget name thing.
See
On 4/7/07, Craig Pemberton [EMAIL PROTECTED] wrote:
I just discovered lookup_widget()!
If you're using lookup_widget(), that means you're using Glade's code
generation, which is going away in glade 3. Use libglade instead,
especially if you're not too far into your project.
-Jim
On 3/7/07, Kevin Lambert [EMAIL PROTECTED] wrote:
I ended up modifying my class such that the information for the dialog gets
added to a vector and I added a timer which looks at the vector and if there
is something new to be displayed it pops it off and launches the appropriate
dialog, thus
On 2/27/07, Saroz Kumar [EMAIL PROTECTED] wrote:
Hi All,
I need to disable minimize, close options on top - right side of the window.
I already built the window with gtk_window_new() call. Is it possible to do
the reqd. changes?
Note: i cannot remove that frame in the window.
AFAIK, this is
Correct me if I'm wrong, but if you're using GDK, I think you should
use pixmaps instead of GdkPixBufs. The docs say that pixbufs are
client-side, while pixmaps are server side, so redrawing a pixbuf will
be more expensive. I also take this to mean that it's possible for an
X server to store a
So you want to know how to use it and you intentionally
avoid one of the most efficient ways to learn it. Well, if
it works for you...
What is so inefficient about taking an example (that already exists)
and including it in the HTML/online documentation that more people
read than source code
On 1/18/07, v4r4n [EMAIL PROTECTED] wrote:
It appears that the 'size-request' signal only happens once, and is not
called when the user resizes the window. I couldn't find a 'resize' signal
definition so I'm not sure what other signals I need to set up for this to
happen all the time.
Sorry,
My program has a GtkDrawingArea in a resizable window. The drawing
area needs a 2D array of integers, sized so that there is 1 integer
per pixel. When the user moves his mouse over the DrawingArea, I want
the program status bar to show the value from the array corresponding
to the pixel under the
On 1/14/07, Francesco Montorsi [EMAIL PROTECTED] wrote:
GTK+ 2.10.3
Hi,
I'm trying to set a tooltip on a GtkFileChooserButton widget without
success... maybe it's simply not possible?
I've done a minimal change to the attached pickers.c file of the
gtk-demo app in order to show it...
I have an app with two threads, one runs the GUI, one receives network
data and uses a select() call to watch for data. The network thread
does not touch the GUI at all. My problem is that when I create a
dialog box with a GtkFileChooser in it, the select function returns
several times with errno
GtkTreeView. However, the following line gives an error:
GArray *serverlist = g_array_new(TRUE, FALSE, sizeof(gchar));
The error is:
main.c:58: error: initializer element is not constant
This should work. Check that you don't have errors in the lines
previous to this in your program.
Actually, that feature is not that important to me, the important part
is that scrolled window, instead of that long ugly thing that a really
long list turns GTK_COMBO_BOX into.
I agree that the combo box does look ugly when there are too many
elements, but the solution, to me, seems to be to
How do I force a parent to tell the child how much space will be available
to the child at this time? Is it even possible? Do I really have to call
gtk_widget_set_size_request()/gtk_widget_size_request() on every parent so
that the children have something to work with?
Use an alignment and
If you use the threads approach and want to make your app portable to
other platforms, you should use the g_thread library. pthreads will
only work under Linux. The biggest problem of using threads is that
the secondary threads must not try to directly update the GUI, unless
you use
On 11/29/06, Mark Richardson [EMAIL PROTECTED] wrote:
What was that library that someone was developing for scientific widgets?
They were things like analog indicators (or dials), an led, etc. I thought I
saved the link, but can't find it now.
http://www.tesla.eletrica.ufpr.br/giw
I'm
I tried using getenv() and putenv(), but it is not working as expected.
That would be the right way. Could you give some more details on why
it doesn't work? Or how it fails? Does setenv return -1? What is errno
set to?
I've packaged the application along with the required GTK dlls in a zip
cmd.exe is surprisingly more powerful than a lot of people realize
though I still personally abhor it.
-jkl
May be so, but you can't do things that you take for granted in Unix,
like running multiple commands in sequence with a semicolon. And, as
far as I know, the system function in most
Here's how I make it work (not sure if this is the right way):
int register_stock_icon(GtkIconFactory *icon_factory, const char
*name, const char *filename)
{
GdkPixbuf *pixbuf;
gchar *pathname;
GError *error = NULL;
pathname = g_strdup_printf(%s%s%s,
shell to run the commandline specified. I'm not sure the behavior on
Windows, but I imagine it probably uses the windows shell to execute the
command line.
There is no shell in Windows, and there is no argument parsing of the
command line, AFAIK
___
However, I learned that for quite a number of methods it is
a good idea to drop the deprecated ones and instead
use the replacements (less buggy, better UI, better source code
readability, less source code, better performance).
Usually it should indeed make sense, because otherwise there
On 11/12/06, Naveen Kumar [EMAIL PROTECTED] wrote:
Hi all,
I am using GTK+-2.2.0 to develop my application in that i am using 5
entries.. and 2 spin buttons and i have 1 button. When i click the button i
nned to access all the data of entries and spin buttons to some variables.
I suppose one problem with the Pixbuf approach is that a Pixbuf is not
a drawable (unlike a Pixmap), so you either need to come up with your
own drawing routines for lines and such, or draw onto a Pixmap and use
gdk_pixbuf_get_from_drawable. If there's a better way, do let me know
(it's one area
On 9/28/06, Sumedh [EMAIL PROTECTED] wrote:
Gtk - C
how to pass multiple arguments to a function from a widget. eg i have
two text entry widgets
and one button. What i want to do is that when i click the button i
should be able to
print(terminal) the contents of both the text entry
On 9/24/06, Sebastien Roy [EMAIL PROTECTED] wrote:
Image is not well written ...
lines seems to be mixed ... Alignement is incorrect ..
I suppose this is due to a wrong usage of dithering/depth parameters ...
data is pointing to a rgb buffer ...
the same call was working fine when writing
In glade, I created a window, with a vbox. In the vbox, I created a
menu bar (called menubar), then add a menu called help and a menu
item called about, and set an event handler for the menu item. In
the menu event handler, I have code which does the following:
void on_about_cb(GtkMenuItem
65 matches
Mail list logo