Re: Finalize a working application



Since i discovered everything and the automake steps now just work
everything should be fine, but ...

I discovered a problem using GtkRecentChooserMenu inside a
GtkToolbar while applying a custom filter on it.

The creation of the recent files stuff:
app->manager = gtk_recent_manager_get_default ();

GtkRecentFilter *filter = gtk_recent_filter_new ();
gtk_recent_filter_add_application (filter, "qinfo");

GtkWidget *recent = gtk_recent_chooser_menu_new_for_manager (app->manager);
gtk_recent_chooser_set_show_not_found (GTK_RECENT_CHOOSER (recent),
	TRUE); /* this seems not to work at all */
gtk_recent_chooser_set_show_private (GTK_RECENT_CHOOSER (recent), TRUE);
gtk_recent_chooser_set_limit (GTK_RECENT_CHOOSER (recent), 10);
gtk_recent_chooser_add_filter (GTK_RECENT_CHOOSER (recent), filter);

GtkWidget *button = GTK_WIDGET (gtk_builder_get_object (app->builder,
	"open_toolbar_item"));
gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (button), recent);

And this way I create a new recent file bookmark:
gtk_recent_manager_add_item (app->manager, file); /* file is a filename from GtkFileChooserDialog */

If i apply the filter, the menu has no enty, if not the last recent files are shown, but I only
want the files to be shown I opened with my program.

Greets, b52.


On Sat, 19 Jul 2008 21:41:54 -0400
Paul Davis <paul linuxaudiosystems com> wrote:

> 
> On Fri, 2008-07-18 at 02:56 +0200, Oli wrote:
> > Hey guys,
> > 
> > I've written a tiny ascii art viewer in C using GTK+.
> > Everything works fine, but I've got a problem.
> > I don't now how to finalize my app.
> > 
> > How should I create an installscript?
> > Where should I place gtkbuilder files and the icon of my app?
> > How to obtain the directory where it got installed to load the files?
> > 
> > I hope someone can help me.
> 
> before anyone could even dream of helping you, you would have to say, at
> the very least, what operating system platform your target is aimed at. 
> even if 90+% of the world's computer users are on windows, this
> statistic is of limited help when it comes to guessing what a GTK ascii
> art viewer might be aimed at.
> 


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