[Bond-users] Couple questions

Dru andru at treshna.com
Mon Aug 13 20:08:25 EDT 2007


Davor Ocelic wrote:
> On Mon, Aug 13, 2007 at 10:20:23AM +1200, Dru wrote:
>> I always just align to the left to match gnome specifications.
> 
> Oh, good to know. Well, in fact, my situation is this: I want to
> visually create something like this:
> 
>  A:    _____
>    AA: _____
>    AB: _____
>    AC: _____
> 
> So right-align would be useful. But I could also use left-align
> if I changed color or font to somehow make it obvious that AA, AB
> and AC are subelements of A.

Have you coded in GTK before? The functions in C are pretty 
straightforward in uigeneral.c for labels. So if you know the GTK 
commands to run on the widget it would be very easy to do this. I can 
help, I just not sure how in GTK you modify colours and layout.





>>> 2) How can I define a default width/height for a window? For 
>>>    example, set default height to 600 but still allow users to
>>>    make it smaller or bigger if they want (so I can't use min/maxheight).
>> Not at the moment, I'm not sure how to do this in GTK. Is there a GTK 
>> function that sets the default hight/width of a window/widget etc?
>>
>> Normally they always strink to the smallest possible size.
> 
> Yes, it's a different function for widget and window, but both would be
> very useful. Here:
> 
>   http://developer.gnome.org/doc/API/2.0/gtk/GtkWidget.html#gtk-widget-set-size-request
>   http://developer.gnome.org/doc/API/2.0/gtk/GtkWindow.html#gtk-window-set-default-size

I'll mark this as a bug to add this feature in.
Should take a week or so normally to get it added.
Tags will likely be height and width.

http://bugzilla.treshna.com/show_bug.cgi?id=504
> 
>>> 3) Could bonddb quote field names? I have a table whose column
>>>    names are pure numbers (like 208, 214, 301).
>> I just changed for updates. does it need it for inserts also?
>>
>> You need to checkout new version of bonddb from subversion for the fix.
> 
> I think in inserts you never explicitly name fields, right? You just say
> insert into TABLE values (v1,v2,v3...)? In that case nothing has to be
> done for inserts.

I believe I explicity name them because the order of fields can be 
different if we use bondreplicate and have two different databases, so 
it explicitiy adds field name nw. I can change that to.

I commited work for update, let me know if it works. Its in bonddb.

> 
> Thanks!
> -doc
> 
> _______________________________________________
> Bond-users mailing list
> Bond-users at hcoop.net
> http://hcoop.net/cgi-bin/mailman/listinfo/bond-users


-- 
Andrew Hill
treshna Enterprises Ltd
Tel: 03 366 3649
Cel: 021 660 819
Web: www.treshna.com
IT Consultancy - Websites - Database development - Computer tech support




More information about the Bond-users mailing list