look for and use the gtk-demo application thats normallu apart of the
devel package. It contains current GTK examples pre-compiled with
source immediately available. Also, consider using devhelp, another
api document viewer for GTK/GLIB and many others.
James,
On Wed, 2009-01-21 at 21:42
Frederico,
From your code listing part of your problem could be this syntax error:
gtk_file_chooser_add_filter(*chooser, *filtro);
it should read;
gtk_file_chooser_add_filter(chooser, filtro);
James,
On Thu, 2009-01-15 at 22:58 -0200, frederico schardong wrote:
Hi,
anybody can help me
,
Christoph Hartwig
James Scott Jr schrieb:
You can also use:
- in the routine that creates the button, save a unique value.
g_object_set_data(G_OBJECT(button), Unique-Key, some-value)
-in button callback routine, retrieve the unique value.
some-value-pointer = g_object_get_data
Till,
I have not tested this yet, but I can give you an ideal of what I would
try first.
Window
-vbox
-- vbutton_box(a,b,c) -- postioned using start
-- vbutton_box(x,y,z) -- postioned using end
Here is the code.
***BEGIN
/* Button Alignment */
#include gtk/gtk.h
int main(int argc, char
may have something of interest:
http://mysite.verizon.net/skoona/id2.html
James,
On Tue, 2008-07-08 at 06:51 +0200, G Hasse wrote:
On Mon, Jul 07, 2008 at 10:58:36PM -0400, James Scott Jr wrote:
G,
The basic design decision to use fork() as a way to do work in the
background flawed. fork
On Tue, 2008-07-08 at 23:23 +0200, G Hasse wrote:
On Tue, Jul 08, 2008 at 01:52:00PM -0400, James Scott Jr wrote:
G,
I've seen most of the other responses, and better understand what you
are trying to do. And like others -- fork() is not recommended.
I can't belive this... Certanly
G,
The basic design decision to use fork() as a way to do work in the
background flawed. fork()ing is not practical for gtk program. While
fork() has been a valid option for many non-gui programs in the absence
of threads, either g_thread_create() or pthread_create(). Today it is
not very
Ok,
http://cairographics.org/examples/
http://live.gnome.org/GtkCairoIntegration
These links have some examples of using everything from a raw image to a
pdf as the backend in cairo from the command line -- without the use of
gtk.
Hope this fits your need better than my last response.
James,
Take a look at the executable 'gtk-demo'. It should have been installed
with gtk's development tools; i.e. already loaded on you machine. Hint:
double click the sample for a live preview, then look at the source
code.
Additionally, here is a link to glinegraph, a simple line graph widget
Tom,
The word hint almost always refers to a potential capability of the
Window Manager; meaning the wm does not have to honor the request or
feature. Maybe your code is working and the wm is ignoring the request!
There might be a bug in gtk, however I would want to try a different wm
or
Tom,
This might be a opportunity to explore and use 'libnotify' and have a
libnotify-popup present your message.
As for your original question, I don't have an answer that I treid and
know for certain will work. However, This is what I would try by
changing my code; 1. I would reread the gtk
Andrew,
I reviewed the code you supplied. The gtk_tree_model_get() have the
correct column numbers, so the fact that PART_COLUMN_CLASS is changing
is interesting from a gcc compiler option perspective; but not cause for
the problems you are experiencing.
PART_COLUMN_CLASS should be a fixed enum
--
On Wed, May 7, 2008 at 8:55 PM, James Scott Jr [EMAIL PROTECTED]
wrote:
On Wed, 2008-05-07 at 20:33 -0600, Diego Rivera wrote:
Hi! I am not exactly new to GTK+, however I have come across
a problem i
have no explanation
The GIW package maybe of interest to you. Its at giw.sourceforge.net.
James,
On Wed, 2008-04-23 at 12:29 +0200, Roberto Mantovani - AL wrote:
Hi,
I need to write a program that displays some statistical values so I
would know if there are libraries fot GTK+ to draw histograms and other
I have not explored the newest version of eclispe, which reports that it
supports the autoconfig framework inside it Managed Make features; so
there may be an easier way than this one.
I always add a 'Makefile' in my source directory that includes the
needed commands to build a gtk+ project.
On Wed, 2008-02-27 at 21:03 -0500, Mark Rodriguez wrote:
James,
When doe s the error occur?
0. When program starts
1. When shutting down
2. When creating the text_view the first time
3. When creating the text_view the Nth time
I will assume it happens durin shutdown (#1).
g_object_ref_sink() replaces gtk_object_sink()
Please make this substitution
James,
On Thu, 2008-02-28 at 00:04 -0500, James Scott Jr wrote:
On Wed, 2008-02-27 at 21:03 -0500, Mark Rodriguez wrote:
James,
When doe s the error occur?
0. When program starts
1. When
On Tue, 2008-02-26 at 20:51 -0500, Mark Rodriguez wrote:
James,
I'm not sure what in your #include common.h, but I placed the following
in mine
#include stdlib.h /* for abort() */
#include gtk/gtk.h /* for gtk, gdk, and glib */
I have a few other things, but these are
Vicki,
Here is a more complete example of how to resolve your issue.
Compile with this command
'# gcc -Wall -g -O2 `pkg-config --libs --cflags gtk+-2.0 glib-2.0
gthread-2.0` gprogress.c'
BEGIN-CODE
#include gtk/gtk.h
/* no globals */
typedef struct _INSTANCE_VALUES
{
GtkWidget
On Thu, 2007-10-04 at 13:27 -0700, [EMAIL PROTECTED] wrote:
Thanks James for giving me my first experience with Thread programming!
I tried the code you sent me, but unfortunately, I still can't get the
progress_update
function to run, looks like it never gets called. Any idea why this
On Tue, 2007-10-02 at 10:51 -0400, [EMAIL PROTECTED] wrote:
I'm still muddling my way through my first GTK application (and I'm a
relative newbie on all software matters).
I have the following in one of my callbacks:
timer = g_timout_add(50, (GSourceFunc) progress_update,
On Sun, 2007-09-30 at 10:07 -0400, dhk wrote:
I have a notebook with a treeview on each page. I'm trying to reference
a treeview on a notebook tab when it is clicked and compare it to
another treeview on another tab; I'm using the switch-page signal.
The treeviews are in vbox's in the tabs
LUK,
This link answers your original double-click question! Read the
Tutorial!
http://scentric.net/tutorial/sec-selections-double-click.html
James ,
On Mon, 2007-09-17 at 09:29 +0100, Lukasz Gromotowicz wrote:
Thanks for the response. I still have a problem. Maybe because I use GTKmm.
I
Take a look at the excellent example in the program 'gtk-demo', which
should be installed on your system already.
Try '# gtk-demo', then choose the 'rotated text' example. Note:
double-clinking the choice launches the example, also notice the two
tabs - one show description, one show the actual
. Paul Ziemba wrote:
gtk_widget_show_all(window);
gtk_widget_hide(window);
gtk_widget_show(window);
gtk_main();
[EMAIL PROTECTED] (James Scott Jr) writes:
Try this instead. The gtk_widget_show_all() then gtk_widget_hide() then
gtk_widget_show() is the cause of your
Try this instead. The gtk_widget_show_all() then gtk_widget_hide() then
gtk_widget_show() is the cause of your problem; unless you were thinking
the window should blink once before appearing.
James,
#include gtk/gtk.h
static void
button_clicked_cb(GtkButton *button, gpointer
Dieterle,
If you would like an even simpler example/tool - pick up glinegraph from
this link http://sourceforge.net/project/showfiles.php?group_id=157888
It does exactly what I needed and may work for you.
James,
On Fri, 2007-06-29 at 12:06 +0200, Daniel Dieterle wrote:
Hey,
after
On Sun, 2007-06-17 at 09:37 -0400, Marshall Lake wrote:
I have a treeview/treestore containing many top-level rows. Each
top-level row contains many children. The treeview works fine except
for one thing. If the user expands a top-level row, selects a child,
and then collapses that
On Sat, 2007-06-16 at 12:15 -0400, Marshall Lake wrote:
I have a treeview/treestore containing many top-level rows. Each
top-level row contains many children. The treeview works fine except for
one thing. If the user expands a top-level row, selects a child, and then
collapses that row
On Thu, 2007-05-24 at 06:27 -0700, Bluezapper wrote:
Hi,
Can someone refer me to an example which plots a simple 2D graph using
gtkextra API.
thanks,
bluezapper.
I have used successfully both GtkExtra and GtkDataBox libraries.
However, for the app I was writing I found them too
On Wed, 2007-04-18 at 04:39 -0700, Rehan wrote:
Hi,
I am trying to write a program based on client-server architecture. I need
only one client connection hence i am first listening to client then
accept() is called. after accept() i call g_io_channel_unix_new () and then
g_io_add_watch()
();
b_run_flag = FALSE;
return 0;
}
/End***/
On 4/17/07, James Scott Jr [EMAIL PROTECTED] wrote:
On Mon, 2007-04-16 at 18:09 +0530, prabahar k wrote:
hi i am trying to use a threaded GTK program. While running theprogram
On Mon, 2007-04-16 at 18:09 +0530, prabahar k wrote:
hi
i am trying to use a threaded GTK program. While running the
program it gives segmentation fault and it seem to be an
thread init problem. is there any thing i am missing? Please
give u r comments.
the code is:
On Thu, 2007-04-12 at 13:36 -0700, nahuel9728 wrote:
Hi everyone. Im developing a interface for a server program and I have some
problems.Step by step:
- I put the server in listen:
fd_dealer2server=socket..
bind
listen(fd_dealer2server,MAX_CON)
- I create a channel and I
g_option_context_parse().
BEGIN EXAMPLE
/* gapc_notify.c20070123
libnotify messaging routine for Linux scripting languages.
output a titled message box to the graphical screen for 10 seconds
Copyright (C) 2007 James Scott, Jr. [EMAIL PROTECTED]
Compile Requirements
these api's.
James,
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
James Scott, Jr.
Registered Linux User #270764
FC6 on Dual
(window), button);
gtk_widget_show (button);
gtk_widget_show (window);
gdk_threads_enter (); /*-C -- correct place for this */
gtk_main ();
gdk_threads_leave ();
return 0;
}
James Scott, Jr.
Registered Linux User
!
Can I create flow layout box in gtk like java FlowLayout Layout Manager?
Or it is need to create derivative class (from GtkTable for example) and
release it behaviour itself?
Thanks.
Sorry for my bad english:)
James Scott, Jr
that you must
acquire/experience/endure related to event programming; but they are
neither hard nor complex - just some basic rules to follow when
organizing your code.
I will help, and I know others will help answer questions related to GTK
programing. How can we help you?
James Scott, Jr
,...) show do the trick.
James,
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
James Scott, Jr.
Registered Linux User #270764
height range */
}
Hope this helps
James,
Can someone help me ?
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
James Scott, Jr
On Sun, 2006-12-31 at 05:43 +, [EMAIL PROTECTED] wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On Sat, Dec 30, 2006 at 12:15:33AM -0500, Tony Freeman wrote:
Thanks everyone, I have this working now :-) Special thanks to Tomas!
happy it helped :-)
Still strange that it
Tony,
I don't claim to be an expert but I have used IconViews TreeViews. I
have never seen it attempted the way you show. Using GDK_TYPE_PIXBUF as
the column type is all I have every tried, based on code I've seen from
others, and it has always worked.
Here are a few observation of your code.
On Mon, 2006-11-13 at 02:15 -0500, Freddie Unpenstein wrote:
On Mon 10/23, James Scott Jr [EMAIL PROTECTED] wrote:
I am about to write the socket module of a program that follows the
gnu standard structure for a daemon. I am using glib wherever
possible and have a question concerning
On Mon, 2006-11-13 at 17:02 -0800, C.R. Kirkwood-Watts wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
James Scott Jr wrote:
On Mon, 2006-11-13 at 02:15 -0500, Freddie Unpenstein wrote:
On Mon 10/23, James Scott Jr [EMAIL PROTECTED] wrote:
I am about to write the socket
Folks,
I am about to write the socket module of a program that follows the gnu
standard structure for a daemon. I am using glib wherever possible and
have a question concerning the use of linux signals. Basically, I have
blocked all signals on all threads according to the standard daemon
model
On Mon, 2006-10-23 at 13:42 -0400, Tristan Van Berkom wrote:
James Scott Jr wrote:
Folks,
Hi James,
in a phrase - I've done it and it works fine.
some places might call for special attention though - for
example - if you were to call g_spawn_sync() or g_child_watch(),
you may
, if you cannot compile my example.
James,
On Mon, 2006-08-14 at 00:35 -0500, Samuel Cormier-Iijima wrote:
eggstatusicon. it was a while ago, so maybe they've updated it, but I
remember that eggtrayicon was what i needed (putting an icon in the
systray)
On 8/14/06, James Scott Jr [EMAIL
Tried compiling what? eggtrayicon.c, edgestatusicon.c ? What was the
error-code/messages ?
James,
On Sun, 2006-08-13 at 10:58 -0500, Samuel Cormier-Iijima wrote:
I tried compiling it once, and it didn't seem to work with GTK 2.0... :-)
On 8/13/06, Enrico [EMAIL PROTECTED] wrote:
Fernando
Here is an example of using eggtrayicon.c and eggtrayicon.h
http://mysite.verizon.net/skoona/id2.html
James,
On Fri, 2006-08-11 at 17:05 +0200, Enrico wrote:
Hi at all!
How can I display an icon in the system tray without using GtkStatusIcon
(I've only GTK 2.8).
Many thanks!
Enrico
On Thu, 2006-06-15 at 12:08 -0300, MatÃas Torres wrote:
I'm building an application in C that uses GTK. The reason i'm doing this is
to learn GTK (and C as well) the main problem I've found is that i write all
the GTK code in only one file and is getting too da## big, so i tried to
divide the
Luis
If you look at the GtkWidget structure you will find it contains an
GtkAllocation allocation, which is a simple rectangle. It is set to
the widget's current size by the configure or realize event of all
widgets. You can use its value reliably almost anytime after the
gtk_main() has had
Folks,
I am creating a xy linegraph widget for the first time, and I am
experiencing a double destroy method call during shutdown. Plus, I
would like some clarification on which api family to use for
params ;GtkObject or GObject, and a little help with naming a new
widget. I'm using
Folks,
I am writing a simple GTK+ line graph codeset to use in my GTK
applications; It's done but not a widget yet.
After reading several books and googling I still have this question.
Question: Is it possible using only GTK+/GDK/GLIB to create a 2000x2000
pixbuf for drawing and have the
On Thu, 2006-04-20 at 18:40 -0700, 3saul wrote:
OK what I'm trying to do is this:
1. Read a directory full of images (the images in the directory will change)
2. Create a table with the correct number of cells.
3. Put a button in each cell with an image on it from the directory
4. In the
On Fri, 2006-04-21 at 20:36 +0200, Francesco Montorsi wrote:
Hi,
I'm struggling with my GTK+ (2.8.17 - coming with ubuntu dapper) to
be able to set the background colour of a button.
I've googled and searched the archives of this mailing list and I have
found exactly same questions
On Thu, 2006-04-06 at 20:57 +0200, Andreas Kotowicz wrote:
this is a general case question. I made myself familiar with gtk+ and
created a few useful (and less useful) programs. I quickly began to
realize that I do reuse some code very often. So I thought about
abstraction and creation of
On Thu, 2006-04-06 at 08:44 +0200, Olaf Leidinger wrote:
Hello!
Unfortunately, I'm not familiar on how to download files from the Gnome CVS
site. Could you briefly explain how I would accomplish this download?
Have a look at
http://developer.gnome.org/tools/cvs.html
In your
On Sun, 2006-04-02 at 07:37 -0700, BobS0327 wrote:
I am trying to develop an application that resides in the notification area
of Fedora 5 and version 2.14.0 of the Notification area. I have found some
sample code on the internet for a base system tray (notification area)
application. It
59 matches
Mail list logo