gtk_toggle signal

2005-06-23 Thread srinivas
hi; i have a doubt in toggle_button. i have two layouts with one layout having checkbox, and another layout with toggle button. i want when i toggle checkbox the toggle button label in another layout has to be changed. i had like this; void on_checkbutton_toggled (GtkToggleButton *togg

Re: embedding images into icons while compiile time

2005-06-23 Thread Brian J. Tarricone
mohan kumar wrote: > hi, > >I am using a set of png icons in my gtk > applications. I keep them in a seperate "images" > directory. whenever i run my application i need them. >Is there a way to copy all the images into my > executable at compile time. So i need not keep the > images when

embedding images into icons while compiile time

2005-06-23 Thread mohan kumar
hi, I am using a set of png icons in my gtk applications. I keep them in a seperate "images" directory. whenever i run my application i need them. Is there a way to copy all the images into my executable at compile time. So i need not keep the images when i execute my application. Than

Re: drawing stuff inside the TreeView

2005-06-23 Thread Maciej Katafiasz
Dnia 23-06-2005, czw o godzinie 10:27 -0700, Alexei D napisał: > > Well, not really. You just pack PixbufRenderer into > > column, and give it > > a pixbuf showing a circle. It's entirely up to you > > how you get the > > circle, drawing it in GIMP and saving as PNG loaded > > by your app > > Than

Re: Toggle Button CellRenderer in GtkTreeView

2005-06-23 Thread Daniel K. O.
Alexei D wrote: Is it possible to change the bg color of a toggle button in TreeView? Do you mean setting the "cell-background" property of the renderer? http://developer.gnome.org/doc/API/2.0/gtk/GtkCellRenderer.html#GtkCellRenderer--cell-background Daniel K. O.

Re: [GObject, long] Gtype for enum + runtime init or by init function.

2005-06-23 Thread Uzytkownik
Dnia 22-06-2005, śro o godzinie 18:25 -0400, Tristan Van Berkom napisał(a): > Uzytkownik wrote: > > Hi, > You should start off by reading: > > http://www.le-hacker.org/papers/gobject/ > > > 1. In g_param_spec_enum I must have GType of this enum. > > a) Why this function need it? > > Its ne

Re: How can I display the buttons in a dialog's action area vertically?

2005-06-23 Thread Christopher Anderson
The documentation says the action_area is indeed a GtkHButtonBox. I doubt that you can change this to a GtkVButtonBox, because that is not the way dialog widgets normally behave. Perhaps, instead, you could put all the choices as entries in a GtkComboBox. Then simply have the usual Ok and Cancel bu

Re: Changing the color of an image/pixbuf

2005-06-23 Thread Christopher Anderson
Does the .gif file have transparency? If not, try making the "background" areas of the image transparent, and see what happens. Chris On 6/22/05, Lola Smith <[EMAIL PROTECTED]> wrote: > Hello, > > I have a pixbuf in a file which I have to change the > color of everytime I use it. Is it even poss

Re: drawing stuff inside the TreeView

2005-06-23 Thread Alexei D
> Well, not really. You just pack PixbufRenderer into > column, and give it > a pixbuf showing a circle. It's entirely up to you > how you get the > circle, drawing it in GIMP and saving as PNG loaded > by your app Thanks for the reply. The thing is, I need many differently colored circles (more t

Re: Pango GTK+ on Windows

2005-06-23 Thread Hubert Sokołowski
On Thu, 23 Jun 2005 16:58:37 +0200 (SAST) Alf C Stockton <[EMAIL PROTECTED]> wrote: > > What I did not point out in my original message is that my program > works > perfectly on my development box but when moved to my clients machine, > where they do not have GTK installed, it fails with the pa

Re: Pango GTK+ on Windows

2005-06-23 Thread Alf C Stockton
What I did not point out in my original message is that my program works perfectly on my development box but when moved to my clients machine, where they do not have GTK installed, it fails with the pango message. On my clients machine the executable I created and all the .dlls that "objdump

Toggle Button CellRenderer in GtkTreeView

2005-06-23 Thread Alexei D
Hi all, Is it possible to change the bg color of a toggle button in TreeView? TreeView actually displays either radio or check buttons (not toggle buttons). I know radio/check buttons do not have background, so I would have to put them in EventBox and change the color of the Eventbox. But I was w

gtk_treeview

2005-06-23 Thread srinivas
hi; i want to append output of gtk_file_selection_get_file_name(fs) to tree_view list_store. when ok button of "fs" pressed file_name has to append to the list_store. so in the callback of ok_sel i given code as; GtkListStore *store; GtkTreeIter iter; GtkWidget *treeview;

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Maciej Katafiasz
Dnia 23-06-2005, czw o godzinie 12:14 +0200, Colossus napisał: > I just gave my two cent as to say; the +- sign was implemented in GTK > 1.2 and it is a beatiful feature of a toolkit to create GUIs. I don't > see any valid reason to remove it in GTK 2.0. And I don't see any valid reason why you'

Re: The expander arrow (triangle) in TreeView - Firefox

2005-06-23 Thread Tim Orford
On Thu, Jun 23, 2005 at 11:38:27AM +0200, Colossus wrote: > Both Firefox and Thunderbird do use this feature, are they using > a GTK 1.2 deprecated widget or developers have implemented this > "beautiful to see feature" in XUL language ? I dont know for sure, but where visible, (eg in the Dom Insp

RPM creation

2005-06-23 Thread harshavardhanreddy mandeepala
Hi, I am using Linux Fedora Core 3. I have created a RPM file for my Application. But how can i make the files in RPM Should go into specific directory after installing the RPM into the system. For example if my RPM contains files like abc,ghj,jkl,kjh. Then After installing my RPM into

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Tim Orford
On Thu, Jun 23, 2005 at 12:14:29PM +0200, Colossus wrote: > >Again, you're not the one to decide here. If the user wants + sign, they > >can use appropriate theme. Apps should NOT be able to override that. > > I just gave my two cent as to say; the +- sign was implemented in GTK > 1.2 and it is a

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
Maciej Katafiasz wrote: Again, you're not the one to decide here. If the user wants + sign, they can use appropriate theme. Apps should NOT be able to override that. I just gave my two cent as to say; the +- sign was implemented in GTK 1.2 and it is a beatiful feature of a toolkit to create G

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Maciej Katafiasz
Dnia 23-06-2005, czw o godzinie 11:32 +0200, Colossus napisał: > > http://bugzilla.gnome.org/show_bug.cgi?id=142415 > > It's curently not possible. This standard feature > > was removed, in part because it "tends to confuse people". > > You can use the old deprecated widgets. > > It tends to confu

Re: a problem about the charset convert functions

2005-06-23 Thread Shixin Zeng
On 6/23/05, 顺珉 吴 <[EMAIL PROTECTED]> wrote: > > There are two types of convert functions: > the g_locale_to(from)_utf8 and the > g_filename_to(from)_utf8(). > > The first says it "Converts a string which is in the > encoding used for strings by the C runtime (usually > the same as that used by th

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
Tim Orford wrote: It's curently not possible. This standard feature was removed, in part because it "tends to confuse people". You can use the old deprecated widgets. Both Firefox and Thunderbird do use this feature, are they using a GTK 1.2 deprecated widget or developers have implemented thi

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
Tim Orford wrote: http://bugzilla.gnome.org/show_bug.cgi?id=142415 It's curently not possible. This standard feature was removed, in part because it "tends to confuse people". You can use the old deprecated widgets. It tends to confuse people ??? With all my respect to people who are better t

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Maciej Katafiasz
Dnia 23-06-2005, czw o godzinie 11:17 +0200, Colossus napisał: > > Gwhere looks like it's using gtk+ 1.2. There's no TreeView in 1.2, and > > old tree widget (GtkCTree) uses + sign for expander. > > It's uses both 1.2 and 2.0. You can select which version you want > with the configure script. I co

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Tim Orford
On Wed, Jun 22, 2005 at 12:59:56PM -0700, Alexei D wrote: > Are there any alternatives to the default triangle > expander arrow in tree columns? For example, can I > change them to +/- instead of a triangle? http://bugzilla.gnome.org/show_bug.cgi?id=142415 It's curently not possible. This standa

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
Maciej Katafiasz wrote: Gwhere looks like it's using gtk+ 1.2. There's no TreeView in 1.2, and old tree widget (GtkCTree) uses + sign for expander. It's uses both 1.2 and 2.0. You can select which version you want with the configure script. I compiled with 2.0 and I confirm it uses +- sign.

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Maciej Katafiasz
Dnia 23-06-2005, czw o godzinie 10:24 +0200, Colossus napisał: > > Yes, if you install a different display theme. At least in > > theory, I can't point to any such themes right away. > > Mmm, sure ? I just downloaded gwhere from gnomefiles.org. It has > a treeview with the sign +-, the theme I us

Re: The expander arrow (triangle) in TreeView

2005-06-23 Thread Colossus
Paul Pogonyshev wrote: Yes, if you install a different display theme. At least in theory, I can't point to any such themes right away. Mmm, sure ? I just downloaded gwhere from gnomefiles.org. It has a treeview with the sign +-, the theme I use is Clearlook but the gtk-demo treeview example s

How to add a single button?

2005-06-23 Thread 百封
I am using GDK to draw some pictures and texts on a GtkWindow. At the same time, I want to add a button to the window. Should I use a container first and how can I use it by just adding one button? I had tested to add a GtkTable and insert a button to it. But then I could not draw the pictures