[Glade-users] selected row
G�nther Mittermayer
g_mitter@web.de
Thu, 28 Aug 2003 14:50:49 +0200
Hi all,
thanks for all the ideas, I ended up solving it by just setting a fixed size to the buttons that were giving me the error. I found changing the XML a bit to "aggressive" and having a different interfaces.c a bit too improductive, since I'm not yet near the end of the program....
Well diff programming styles i guess ;)
I got another doubt though. I got a list (GtkStore), where I show some data.
I wanted to show the properties of a highlighted list item on the click of a button. To do that I need to get some reference to the highlighted row, but I can't find the right signal to it..
row_activated is only called when I double-lick the row, cursor_changed is only activated when I change the row with the arrow keys, and couldn't figure out yet what toggle_cursor_row does..
spent some time in Gtk API looking for some "get_selected_row" without success... I think the answer might be on the Iterators, but couldn't yet find it...
anyone got a shortcut?
tks,
G�nther.
John Coppens <john@jcoppens.com> schrieb am 28.08.03 00:23:04:
>
> On Wed, 27 Aug 2003 16:25:38 +0200
> "G�nther Mittermayer" <g=5Fmitter@web.de> wrote:
>
> > Hi all,
> >
> > I am getting the following message:
> >
> > Gtk-CRITICAL **: file gtkwidget.c: line 5140
> > (gtk_widget_set_size_request): assertion 'height >=-1' failed
> >
> > looking on the web, it seems that that is a commo glade-2 problem (gla=
de
> > seems to place some sizes wrongly), but I'm not sure on how to fix it.=
> > Some talk about hard coding in interfaces.c, but that doesn't seem to
> > make any sense to me, since glade will overwrite it any way..
> >
> > any suggestions?
>
> It is a glade error. Edit interface.c (near the end of development,
> because it gets rewritten after each change made with Glade), and change=
> the -2's to -1. That should fix it.
>
> Someone mentioned he wrote a script to do this automatically.
>
> John
>
> >
> > thanks,
> >
> > G�nther.
> > ______________________________________________________________________=
_
> > ___ Die sicherste Form der Kommunikation: E-Mails verschluesseln,
> > Spam-Filter, Adressverifizierung, digitale Unterschrift:
> > http://freemail.web.de
> >
> > _______________________________________________
> > Glade-users maillist - Glade-users@lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/glade-users
>
>
> _______________________________________________
> Glade-users maillist - Glade-users@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/glade-users
__________________________________________________________________________
Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter,
Adressverifizierung, digitale Unterschrift: http://freemail.web.de