Re: [gnome-db] Gnome-DB SQL Window syntax hi-lighting of keywordsRo



The SQL Editor is working now, and I have put it into a new GTK 2.0
widget named GnomeDbSqlEditor. 

Now, how do I put it into libgnomedb?

Thanks,
Daniel

On Sat, 2002-03-16 at 20:26, Rodrigo Moya wrote:
> On Sun, 2002-03-17 at 02:13, Daniel Morgan wrote:
> 
> > This way, we could have something like a gnome_db_foreach_command(). 
> > For each SQL Command, run this function.
> > 
> > Example:
> >        sql_command_list = gnome_db_sql_editor_get_all_commands(
> >                                 sql_editor_widget, run_pref);
> >        gnome_db_foreach_command ( sql_command_list, 
> >                                 (GFunc) gnomedb_run_command );
> > 
> this is a good idea.
> But, to make it shorter, I'll have:
> 
> GList *gnome_db_sql_editor_get_all_commands (sql_editor);
> void gnome_db_sql_editor_foreach_command (sql_editor, (GFunc)
> run_command, user_data);
> 
> Thus, if you need to get the list, you call
> gnome_db_sql_editor_get_all_commands. If you just want to run over all
> commands, you just call gnome_db_sql_editor_foreach_command, which
> traverses the list and calls the callback for each command.
 





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