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,
Your CCLIST dropped the reference to gtk-app-devel-l...@gnome.org.
Which will certaily impact who can respond.
Here is your example you asked for.
Regards,
James Scott, Jr.
Registered Linux User #270764
/* Sampler.c */
#include
static gchar* fn_get_file (GtkWindow *parent
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
that does not
> use such static functions.
>
> Greetings,
> 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", &
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(G_OBJECT(button), "Unique-Key");
This in addition to any
Andrew,
Where are you with this problem now? I have tried to review your posts
to better understand your dilemma, and I can make one suggestion in
reference to "add to gnome bar and it doesn't show anything".
When you have the *.server file correct, and your C code correct, in
that your printf's
How to exit the main loop? Stick this in a timer routine and execute it
when your ready to shutdown. --g_main_loop_quit(main_loop); --
Also, the following link contains two daemons; a pure glib one, and a
pure libc one; including threads, etc...
http://mysite.verizon.net/skoona/sitebuildercon
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
int main(int argc, char *argv[] )
{
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 recomm
y website 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
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 usefu
On Thu, 2008-06-12 at 11:12 +0200, Kees Scherpenhuijzen wrote:
> 2008/6/12, James Scott Jr <[EMAIL PROTECTED]>:
> > Kees,
> >
> > I cannot seem figure out what your trying to do. The code I see in the
> > notes is not something I understand; and I am
Kees,
I cannot seem figure out what your trying to do. The code I see in the
notes is not something I understand; and I am an experienced gtk
developer.
Please back away from the code for a minute and try to describe what it
is your trying to achieve with this interface or application that
spawn
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
written
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 somet
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 api
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
or retry the gdb exercise.
James,
> -Diego--
>
> 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 GT
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 for, and I'll be glad if someone could point me towards
> a possible solution.
>
> I am currently developing an application that uses various al
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 - A&L 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. ec
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?
&g
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
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 /* for abort() */
> > #include /* for gtk, gdk, and glib */
>
> I have a few other things, but these are included
Mark,
I'm not sure what in your #include "common.h", but I placed the
following in mine
#include /* for abort() */
#include /* for gtk, gdk, and glib */
With that single change the program compiled and executed without error
message; as I would have expected.
James,
On Tue, 2008-02-26 at 01
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
/* no globals */
typedef struct _INSTANCE_VALUES
{
GtkWidget *progressbar;
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,
> (gpoint
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 t
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
LUK,
One way is to create a Selection when you define the treeview, then
whenever a double-click selection occurs your callback will be called
with its parms point to the row that was selected. the callbacks params
will have the current and correct path as input params.
review this tutorial for
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 co
00 +, G. 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.
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
>
> static void
> button_clicked_cb(GtkButton *button, gpointer data)
>
The GIW package at http://giw.sourceforge.net/ contains a linegraph
which may work for you application. There is a screenshot to help you
evaluate.
James,
On Thu, 2007-07-12 at 11:53 +0100, Iain * wrote:
> On 7/12/07, Stefan Kost <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > there is a few. Jokoshe
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 googl
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 col
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
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
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_wa
connect (GTK_OBJECT (window), "destroy",
> GTK_SIGNAL_FUNC (destroy), NULL);
> gtk_container_set_border_width (GTK_CONTAINER (window), 10);
> gtk_widget_show (window);
>
>
> pthread_create (&thrd1, NULL, argument_thread, (void*)&b_run_
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
orks. However, here
is a full example; notice the if statement around
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 s
reads.
g_idle_add()
g_io_watch()
g_io_timeout_add()
Hopefully you have the application devhelp and can look up these api's.
James,
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-list@gnome.org
> http://mail.gnome.org/mailma
/* create a new window */
window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
g_signal_connect (G_OBJECT (window), "destroy",
G_CALLBACK (gtk_main_quit), NULL);
gtk_container_set_border_width (GTK_CONTAINER (window), 100);
button = gtk_button_new_with_label("clic
llo!
>
> 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 en
al/book1.html" in your
filesystem.
There are a few 'AH' 'HA' moments 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
have settled down. -- wait, this assumes you issued a
gtk_widget_show{_all} on the main window containing all this stuff! Its
the gtk_widget_show that starts the cascade of messages which includes
the size and realize messages.
g_idle_add() or g_timeout_add(250,...) show do th
/* this point is inside the gvbox's height range */
}
Hope this helps
James,
>
> Can someone help me ?
> ___
> gtk-app-devel-list mailing list
> gtk-app-deve
wonder. I promise, next time I'll
> check my code more thoroughly before
> incriminating gtk!
>
> Best,
> Amities,
>Olivier
>
> ___
> gtk-app-devel-list mailing list
> gtk-app-devel-li
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 th
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 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
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
> > p
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 t
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 a
, 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, Ja
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:
> > Fer
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!
>
>
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
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 an
Thanks for the quick response.
On Thu, 2006-05-25 at 19:07 +0200, David Nečas (Yeti) wrote:
> On Thu, May 25, 2006 at 12:18:46PM -0400, James Scott Jr wrote:
> >
> > Q1: Naming a new widget: Is it ok to name it gtk_linegraph_new() ?
> >- I named mine sk_linegra
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 gtk2-devel-2
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 expose-
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 questi
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
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
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 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. I
71 matches
Mail list logo