[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: how to modify the GnomeDbDataWidgetInfo?
- From: "Daniel Espinosa" <esodan gmail com>
- To: "Vivien Malerba" <vmalerba gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: how to modify the GnomeDbDataWidgetInfo?
- Date: Thu, 18 Sep 2008 18:05:47 -0500
May be could be usefull to modify the code at GnomeDbDataWidgetInfo in order
to add properties that allows to hide this objects, in order to share this
functionality.
2008/9/17 Vivien Malerba <vmalerba gmail com>
> 2008/9/17 paragasu <paragasu gmail com>:
> > by default, gnome_db_form/gnome_db_grid widget create a set of control
> > (GnomeDbDataWidgetInfo). To add or manipulate data.
> >
> > For my application, i only need the update button, i do not need the
> > insert, add or
> > the next record button. How to remove all button except the update
> button?
> >
> > Or how i can create my update button to do function exactly like the one
> used in
> > the GnomeDbDataWidgetInfo update button.
>
> Hidding buttons is not supported by the GnomeDbDataWidgetInfo widget.
> However, there are several things you can do:
> 1) copy the source of GnomeDbDataWidgetInfo (rename it to be one of
> your widgets) and remove the unnecessary code, then pack together a
> GnomeDbRawGrid/Form with your new widget
> 2) pack a GnomeDbRawGrid/Form with a button of your own for which the
> callback function will call
> gnome_db_data_widget_perform_action(rawform/grid,
> GNOME_DB_ACTION_WRITE_MODIFIED_DATA)
> 3) use gnome_db_data_widget_set_write_mode(rawform/grid,
> GNOME_DB_DATA_WIDGET_WRITE_ON_VALUE_ACTIVATED) for example, in which
> case you don't need any button at all
>
> In any case you'll have to create a GnomeDbRawForm/Grid widget first.
>
> Hope this will help you,
>
> Vivien
>
> BTW: please use the Gnome-DB mailing list for questions related to
> libgda/libgnomedb.
> _______________________________________________
> gtk-app-devel-list mailing list
> gtk-app-devel-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
>
--
Trabajar, la mejor arma para tu superación
"de grano en grano, se hace la arena" (R) (en trámite, pero para los cuates:
LIBRE)
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]