On Fri, Feb 01, 2008 at 05:17:15PM +0100, Dan H. wrote:
> how can I set up a GtkFileChooser so that users can select a folder rather
> than a file?
Ah. Please forget that. Too obvious. --D.
___
gtk-app-devel-list mailing list
gtk-app-deve
Hello,
how can I set up a GtkFileChooser so that users can select a folder rather
than a file? As it is, one selects a a folder and clicks "open" (hoping to
select that folder), but rather than returning that folder's path, the
dialog just opens the folder and shows its contents.
How can this be c
> > - Is something in the google algorithms preferencial to anything but C?
In a way, yes. It's impossible to make C-specific queries because a single C
in the query is either ignored, or machtches pretty much the entire WWW. And
C API docs seldom mention the fact that they're intended to be used
On Mon, 14 Jan 2008 18:18:30 +0530 (IST)
[EMAIL PROTECTED] wrote:
> Thanks for that insight friend, but I am talking about a call back
> function whose return is void, and so my statement is alright with
> it ...and going by your own statement, TRUE and FALSE are values
> possibly boolean and are
On Mon, 7 Jan 2008 14:51:11 +0530 (IST)
[EMAIL PROTECTED] wrote:
> IN REPLY TO DANS COMMENTS:
>
> 1. I am using the g++ compiler and g++ doesnt let a gpointer[return
> type of g_malloc0()] or a void pointer point a gchar or a
> ProgressData pointer. That is why the typecast.
Ah, so you're using
On Mon, 7 Jan 2008 13:18:07 +0530 (IST)
[EMAIL PROTECTED] wrote:
[Stuff snipped]
Some comments on your code, aside from the basic conceptual problems:
> pdata = (ProgressData *)g_malloc0(sizeof(ProgressData));
Useless cast, and useless parentheses around sizeof's operand.
> txt_st
On Sun, 30 Dec 2007 23:35:02 +0200
"Zeeshan Ali Khattak" <[EMAIL PROTECTED]> wrote:
> Hi Gregory!
>
> > - How do I remove the old object from the GtkBox ?
> >
> > - How do I "free up" the old object (image/pixbuf) ? Do I
> > simply unref it ?
>
>You don't have to do
On Tue, 18 Dec 2007 22:52:23 +0100
G Hasse <[EMAIL PROTECTED]> wrote:
> The wrong thing is trying to do threads!
>
> Why Why Why are all people doing this thread programing!
> I am convinced that with a propper design of your application,
> maybe in several processe, you don't need threads and y
On Mon, 17 Dec 2007 08:52:11 -0500
Patrick <[EMAIL PROTECTED]> wrote:
> So as Dan was saying, I can launch other programs written in other
> languages from system() function calls. So I could link lots of
> them together regardless of language they are written in and if I
> really needed to I cou
On Sun, 16 Dec 2007 16:21:02 -0500
Patrick <[EMAIL PROTECTED]> wrote:
> I have wanted to learn Ruby for a while now, I could definitely do
> that. Nicola was saying that my Bash idea might be a problem
> because of the spawn time involved with bash.
Whether you can or cannot live with certain "sp
On Sun, 16 Dec 2007 12:47:44 -0500
Patrick <[EMAIL PROTECTED]> wrote:
> With so many aspects to this does anyone think that using Bash
> would be useful? For example if we designed all the smaller
> programs to read and write from/to standard input and output, they
> could be interlinked with oth
On Thu, 13 Dec 2007 11:40:41 -0700
Michael L Torrie <[EMAIL PROTECTED]> wrote:
> Dan H wrote:
> > Isn't "smart pointers" just a reference counting scheme?
>
> Yup. Poor-man's garbage collection. Turns out to be just the
> ticket, though, fo
Hello,
I've written some C code which at some point seems to be trampling over memory
that belongs to GTK-related stuff, which causes erratic crashed at some
unrelated point much later. This is of course not a GTK issue, just a
well-known phenomenon in general.
I'm trying to use valgrind to tr
On Wed, 12 Dec 2007 09:26:25 -0700
Michael L Torrie <[EMAIL PROTECTED]> wrote:
> GTKmm is based on some very nice C++ abstractions around pointers,
> providing many of the same benefits as any managed language with
> pure C++. They are called smart pointers and for GUI development,
> they work ve
On Mon, 26 Nov 2007 16:48:05 +
Jon Harrop <[EMAIL PROTECTED]> wrote:
> My recommendation is to choose a garbage collected language for GUI
> work as it makes everything so much easier. Lots of GCd languages
> have GTK bindings these days.
Just for the record, garbage collection (which is a go
Hello,
I'm currently struggling with the GtkExtra toolkit for generating 2D line
plots. From what I saw in the example programs this is a great suite of tools,
but unfortunately completely undocumented, which, given the complexity of the
suite, makes it very difficult to get started with.
So I
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 full
of radiobuttons, but Glade always creates those with
On Mon, 26 Nov 2007 21:12:17 -0800 (PST)
JAMES SCOTT <[EMAIL PROTECTED]> wrote:
> When I have to write in C, Glib is a godsend.
Yes! When I came back to C from C++ (I had done a large project for which C++
was ideally suited, but I like C much better) the thing I missed most was the
STL. I was
On Sun, 25 Nov 2007 00:03:14 +0100
Tomas Carnecky <[EMAIL PROTECTED]> wrote:
> > Am I limited with C?
> No, there are very few features in C++ that are hard/impossible to
> imitate in C, but you usually won't need those for small projects.
In fact the GObject library (on which GTK is based) is an
Hello folks,
I need a way to quickly display some 2D datasets in a graph. I don't need any
editing functions or other interactivity, just two axes with some ticks and
tick labels and a bunch of datapoints connected by lines.
I've found the GtkPlot stuff from GtkExtra. The possibilities seem to
Hello,
Sez the GTK+ documentation (in my case it's version 2.8.20, but the current API
doc hasn't changed in this respect):
void gtk_container_child_get (GtkContainer *container,
GtkWidget *child,
const gchar *first_prop_name, ...);
..
On Tue, 20 Nov 2007 01:11:17 +0100
Benoît Dejean <[EMAIL PROTECTED]> wrote:
> > - GValue left_attach;
> > + GValue left_attach = { 0, };
> > +
> > + g_value_init (&left_attach);
> > +
>
> I always though that this requirement was error prone. You just get
> to initialize your GValue twice to make
On Mon, 19 Nov 2007 11:33:36 +
Emmanuele Bassi <[EMAIL PROTECTED]> wrote:
Hallo Emmanuele,
it's not getting better. Here's my code. li->data points to a cild of the
table, and the code compiles without warnings with -W -Wall:
-
g_value_init(&value, G_TYPE_INT);
gtk_c
On Mon, 19 Nov 2007 10:56:35 +
Emmanuele Bassi <[EMAIL PROTECTED]> wrote:
> > Any hints?
>
> just one page further:
>
> http://library.gnome.org/devel/gobject/stable/gobject-Standard-Parameter-and-Value-Types.html
Ah, I'm using the Debian-supplied version 2.12.4, and your page refers to
2.
OK, I've got something in the form of a GValue (in this case, integer numeric
data
obtained with gtk_container_child_get()), and I'd like to get access to the
actual number inside. How is this done? I've looked into GValue's
documentation, but all I see is stuff that deals only with GValues and
Hello,
I'm using Glade-2 to build a GTK interface: I made an array of radiobuttons,
and Glade always creates them using gtk_radio_button_new_with_mnemonic. I don't
want the buttons labelled, so I set the label to "", but the button is still
slightly asymmetric because of the empty label.
I tri
Enrico Tröger wrote:
> Hm, I use -Wall for compiling with gcc. And this code doesn't produce a
> warning:
> g_signal_connect (dialog, "delete_event", G_CALLBACK(gtk_widget_hide),
> NULL);
> And how could it? The gcc can't know which return type the definition
> of the delete_event expects, can it
Enrico Tröger wrote:
> Yes, I misused gtk_widget_hide and already fixed my code.
[...]
> Obviously, I just wondered about the different behaviour of different
> systems. I tested it also under Windows and there it is like in Debian,
> the widget is still functional even though only by accident o
28 matches
Mail list logo