RE: gtk-list Digest, Vol 7, Issue 14



Regarding table resizing...you need to move the table widget reference into
your table update utility.  After you resize the table, you then need to do
a table->show_all command to effect the 'showing' of the updated table.

Scott


-----Original Message-----
From: gtk-list-bounces gnome org [mailto:gtk-list-bounces gnome org] On
Behalf Of gtk-list-request gnome org
Sent: Wednesday, November 10, 2004 8:17 AM
To: gtk-list gnome org
Subject: gtk-list Digest, Vol 7, Issue 14

Send gtk-list mailing list submissions to
	gtk-list gnome org

To subscribe or unsubscribe via the World Wide Web, visit
	http://mail.gnome.org/mailman/listinfo/gtk-list
or, via email, send a message with subject or body 'help' to
	gtk-list-request gnome org

You can reach the person managing the list at
	gtk-list-owner gnome org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of gtk-list digest..."


Today's Topics:

   1. gtk_table_resize() (David J. Singer)
   2. Re: gtk_table_resize() (Tristan Van Berkom)
   3. Bindings and accelerators (Nicolas George)
   4. Remove an item from radiomenu (antongiulio)
   5. How to unset the transient for a window? (Tom Liu)
   6. Re: gtk_table_resize() (David J. Singer)
   7. Re: gtk_table_resize() (David Necas (Yeti))
   8. Re: Marshalling/Serialization Gtk::TextBuffer (Murray Cumming)
   9. i wanna know how to color a frame (vikram_dravid_sr)
  10. Re: Marshalling/Serialization Gtk::TextBuffer (Jean Br?fort)
  11. Shadowing of a button (John Fisher)


----------------------------------------------------------------------

Message: 1
Date: Tue, 9 Nov 2004 20:26:55 +0000
From: "David J. Singer" <doc deadvirgins org uk>
Subject: gtk_table_resize()
To: gtk-list gnome org
Message-ID: <200411092026 55279 doc deadvirgins org uk>
Content-Type: text/plain;  charset="us-ascii"


I have a table I'm using for widget layout. It's basically always
two columns but I would like the number of rows to be 
changeable programmatically.   

I define by table initially with something like:

  table = gtk_table_new( 1, 2, TRUE);

to start with a table having one row and two columns.  If I then 
call something like:

  gtk_table_resize( table, 5, 2 );

nothing appears to happen.  I'm not sure why and I can't find 
any examples of gtk_table_resize() in use...

Anyone care to advise?

-- 
David J. Singer
doc deadvirgins org uk
"Time flies like an arrow, fruit flies like a banana"



------------------------------

Message: 2
Date: Tue, 9 Nov 2004 15:40:39 -0500
From: Tristan Van Berkom <tristan van berkom gmail com>
Subject: Re: gtk_table_resize()
To: "David J. Singer" <doc deadvirgins org uk>
Cc: gtk-list gnome org
Message-ID: <560259cb04110912405b73ed56 mail gmail com>
Content-Type: text/plain; charset=US-ASCII

On Tue, 9 Nov 2004 20:26:55 +0000, David J. Singer
<doc deadvirgins org uk> wrote:
> 
> I have a table I'm using for widget layout. It's basically always
> two columns but I would like the number of rows to be
> changeable programmatically.
> 
> I define by table initially with something like:
> 
>   table = gtk_table_new( 1, 2, TRUE);
> 
> to start with a table having one row and two columns.  If I then
> call something like:
> 
>   gtk_table_resize( table, 5, 2 );
> 
> nothing appears to happen.  I'm not sure why and I can't find
> any examples of gtk_table_resize() in use...

Have you tried adding children to any of the newly created rows ?

Cheers,
                                                         -Tristan


------------------------------

Message: 3
Date: Tue, 9 Nov 2004 22:02:18 +0100
From: Nicolas George <nicolas george ens fr>
Subject: Bindings and accelerators
To: gtk-list gnome org
Message-ID: <20041109210218 GA21780 clipper ens fr>
Content-Type: text/plain; charset="us-ascii"

How are supposed to be handled conflicts between bindings in gtkrc and
accelerators from the application?

I use Ctrl-W to backward delete words all the time, so I have the following
binding for TextEntry and TextView:

	bind "<ctrl>w" { "delete-from-cursor" (word-ends, -1) }

But some applications have accelerators on Ctrl-W, especially some "close
window" function, and these accelerators seem to override the binding. And
some applications somehow disable the changing of accelerators (I have
"gtk-can-change-accels = 1") (XChat does that, for example, I did not find
how it does that in the source).

Am I condamned to inadvertently close my window every five minutes typing
Ctrl-W, or is there some way to have the bindings have priority over the
accelerators?

Regards.

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 185 bytes
Desc: not available
Url : /archives/attachments/20041109/4308b525/attachment.bin

------------------------------

Message: 4
Date: Tue, 9 Nov 2004 22:18:38 +0100
From: antongiulio <antongiulio email it>
Subject: Remove an item from radiomenu
To: gtk-list gnome org
Message-ID: <20041109221838 69299772 antongiulio email it>
Content-Type: text/plain; charset=US-ASCII

Hi,

my app makes a single item with this code (for single item):

item = gtk_radio_menu_item_new_with_label (group_radio, string);
group_radio = gtk_radio_menu_item_get_group (GTK_RADIO_MENU_ITEM (item));
gtk_menu_shell_append (GTK_MENU_SHELL (radio_menu), item);

what is right code to delete a single item?

Thanks,
Giulio
 
 
 --
 Email.it, the professional e-mail, gratis per te: http://www.email.it/f
 
 Sponsor:
 Dai più energia al tuo sport! Rigenera il tuo corpo in maniera naturale
* Grazie agli integratori sport che trovi solo su Erboristeria.com
 Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=2379&d=9-11


------------------------------

Message: 5
Date: Tue, 9 Nov 2004 16:52:05 -0500
From: "Tom Liu" <tom liu flextrade com>
Subject: How to unset the transient for a window?
To: <gtk-list gnome org>
Message-ID:
	<001d01c4c6a6$5aaf1170$6608fc81 flexwin intranet flextrade com>
Content-Type: text/plain;	charset="us-ascii"

The function gtk_window_unset_transient_for  is a static function, How
can I access this function in my program, or can I a get around?

static void       
gtk_window_unset_transient_for  (GtkWindow *window)


This function should be very useful.
Thanks.





------------------------------

Message: 6
Date: Tue, 9 Nov 2004 22:03:52 +0000
From: "David J. Singer" <doc deadvirgins org uk>
Subject: Re: gtk_table_resize()
To: gtk-list gnome org
Message-ID: <200411092203 52616 doc deadvirgins org uk>
Content-Type: text/plain;  charset="iso-8859-1"


Tristan,

On Tuesday 09 November 2004 20:40, you wrote:
>
> Have you tried adding children to any of the newly created rows ?

Yes. I created buttons as an example and then 'attached' them
into the table with gtk_table_attach_defaults().   Which makes 
me think that, when I want to resize the table, do I then have to
remove the child widgets if the new table is smaller?!   


-- 
David J. Singer
doc deadvirgins org uk
"Time flies like an arrow, fruit flies like a banana"



------------------------------

Message: 7
Date: Tue, 9 Nov 2004 23:07:09 +0100
From: "David Necas (Yeti)" <yeti physics muni cz>
Subject: Re: gtk_table_resize()
To: "David J. Singer" <doc deadvirgins org uk>
Cc: gtk-list gnome org
Message-ID: <20041109220709 GT5255 potato>
Content-Type: text/plain; charset=us-ascii

On Tue, Nov 09, 2004 at 10:03:52PM +0000, David J. Singer wrote:
> >
> > Have you tried adding children to any of the newly created rows ?
> 
> Yes. I created buttons as an example and then 'attached' them
> into the table with gtk_table_attach_defaults().

Did you show (gtk_widget_show()) them too?

Yeti


--
Dynamic IP address is not a crime.


------------------------------

Message: 8
Date: Wed, 10 Nov 2004 10:09:19 +0100 (CET)
From: "Murray Cumming" <murrayc murrayc com>
Subject: Re: Marshalling/Serialization Gtk::TextBuffer
To: "Stephen Dennison" <stephenrd gmail com>
Cc: gtk-list gnome org, gtkmm-list gnome org
Message-ID: <55438 217 10 50 85 1100077759 spork webmail murrayc com>
Content-Type: text/plain;charset=iso-8859-1

(This time with the correct gtk-list address.)

[snip]
> I need a way of serializing a Gtk::TextBuffer
> for a note making application that I'm working on.  I'd like to
> support basic formatting and unicode text, and the TextBuffer and a
TextView seem to be a pretty good way of doing this.
[snip]

So, I think the problem is that you want to save formatting (tags) as well
as the text itself. I don't think that there is API for this already, but
I think that I've seen some message somewhere from Havoc talking about the
possibility. I'm CCing to gtk-list in case anybody else has an idea.

In the worst case, it shouldn't be too difficult to do this yourself. I
recommend libxml++ if you want to use an XML document format.

Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com



Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com


------------------------------

Message: 9
Date: Wed, 10 Nov 2004 14:40:46 +0530
From: "vikram_dravid_sr" <vikram_dravid_sr indiatimes com>
Subject: i wanna know how to color a frame
To: <gtk-list gnome org>
Message-ID: <200411100904 OAA28099 WS0005 indiatimes com>
Content-Type: text/plain; charset="us-ascii"

hi,
i wanna kno how a frame can be colored...i wanna use the GdkRgb class to set
the color...

Indiatimes Email now powered by APIC Advantage. Help! 
HelpClick on the image to chat with me
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /archives/attachments/20041110/5e464a6d/attachment.htm

------------------------------

Message: 10
Date: Wed, 10 Nov 2004 10:32:18 +0100
From: Jean Br?fort <jean brefort normalesup org>
Subject: Re: Marshalling/Serialization Gtk::TextBuffer
To: Murray Cumming <murrayc murrayc com>
Cc: Stephen Dennison <stephenrd gmail com>, gtkmm-list gnome org,
	gtk-list gnome org
Message-ID: <1100079138 458 3 camel gericom brefort fr>
Content-Type: text/plain; charset=iso-8859-1

Le mer 10/11/2004 à 10:09, Murray Cumming a écrit :
> (This time with the correct gtk-list address.)
> 
> [snip]
> > I need a way of serializing a Gtk::TextBuffer
> > for a note making application that I'm working on.  I'd like to
> > support basic formatting and unicode text, and the TextBuffer and a
> TextView seem to be a pretty good way of doing this.
> [snip]
> 
> So, I think the problem is that you want to save formatting (tags) as well
> as the text itself. I don't think that there is API for this already, but
> I think that I've seen some message somewhere from Havoc talking about the
> possibility. I'm CCing to gtk-list in case anybody else has an idea.
> 
> In the worst case, it shouldn't be too difficult to do this yourself. I
> recommend libxml++ if you want to use an XML document format.

I have done this in GChempaint using libxml2, not libxml++ :-(. The
appropriate methodes are gcpText::Save and gcpText::SaveNode in
lib/text.cc
http://savannah.nongnu.org/cgi-bin/viewcvs/gchempaint/gchempaint/lib/text.cc




------------------------------

Message: 11
Date: Tue, 9 Nov 2004 12:47:22 -0500
From: John Fisher <jdf rse com>
Subject: Shadowing of a button
To: gtk-list gnome org
Message-ID: <200411091247 22835 jdf rse com>
Content-Type: text/plain;  charset="iso-8859-1"


Hi,

Is there any way to change the thickness of the shadow on a button so that
it looks more raised or depressed?  I have looked in to Styles but
everything I have tried just doesn't work.

Thanks,
John Fisher

Please email directly to: jdf rse com



------------------------------

_______________________________________________
gtk-list mailing list
gtk-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-list


End of gtk-list Digest, Vol 7, Issue 14
***************************************




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]