Cosmetic fixes
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2006-04-16 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* gtk/migrating-GtkRecentChooser.sgml: Cosmetic fixes to
|
||||||
|
examples.
|
||||||
|
|
||||||
2006-04-04 Tor Lillqvist <tml@novell.com>
|
2006-04-04 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* gdk/tmpl/threads.sgml: Mention that the Win32 backend should not
|
* gdk/tmpl/threads.sgml: Mention that the Win32 backend should not
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
GtkRecentManager *manager;
|
GtkRecentManager *manager;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
manager = gtk_recent_manager_new ();
|
manager = gtk_recent_manager_new (<!-- -->);
|
||||||
|
|
||||||
gtk_recent_manager_add_item (manager, document_uri, &error);
|
gtk_recent_manager_add_item (manager, document_uri, &error);
|
||||||
if (error)
|
if (error)
|
||||||
@ -87,7 +87,7 @@
|
|||||||
GtkRecentData *recent_data;
|
GtkRecentData *recent_data;
|
||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
manager = gtk_recent_manager_new ();
|
manager = gtk_recent_manager_new (<!-- -->);
|
||||||
|
|
||||||
recent_data = g_new0 (GtkRecentData, 1);
|
recent_data = g_new0 (GtkRecentData, 1);
|
||||||
/* the user visible name of the document (maybe its title); should
|
/* the user visible name of the document (maybe its title); should
|
||||||
@ -100,16 +100,16 @@
|
|||||||
|
|
||||||
/* the name of the application that is registering the document
|
/* the name of the application that is registering the document
|
||||||
* (also mandatory); usually, the same name you used with
|
* (also mandatory); usually, the same name you used with
|
||||||
* the g_set_application_name() function.
|
* the g_set_application_name (<!-- -->) function.
|
||||||
*/
|
*/
|
||||||
recent_data-&app_name = APP_NAME;
|
recent_data-&app_name = APP_NAME;
|
||||||
|
|
||||||
/* the command to open a file; the %u string will be automagically
|
/* the command to open a file; the %u string will be automagically
|
||||||
* expanded to the document's URI when getting the application's
|
* expanded to the document's URI when getting the application's
|
||||||
* command line from the GtkRecentInfo object with
|
* command line from the GtkRecentInfo object with
|
||||||
* gtk_recent_info_get_application_info()
|
* gtk_recent_info_get_application_info (<!-- -->)
|
||||||
*/
|
*/
|
||||||
recent_data-&app_exec = g_strjoin (" ", g_get_prgname (), "--open-file", "%u", NULL);
|
recent_data-&app_exec = g_strjoin (" ", g_get_prgname (<!-- -->), "--open-file", "%u", NULL);
|
||||||
|
|
||||||
gtk_recent_manager_add_full (manager, document_uri, recent_data, &error);
|
gtk_recent_manager_add_full (manager, document_uri, recent_data, &error);
|
||||||
if (error)
|
if (error)
|
||||||
@ -281,7 +281,7 @@
|
|||||||
<informalexample><programlisting>
|
<informalexample><programlisting>
|
||||||
GtkRecentFilter *filter;
|
GtkRecentFilter *filter;
|
||||||
|
|
||||||
filter = gtk_recent_filter_new ();
|
filter = gtk_recent_filter_new (<!-- -->);
|
||||||
|
|
||||||
/* set the user visible name of the filter */
|
/* set the user visible name of the filter */
|
||||||
gtk_recent_filter_set_name (filter, "Since Last Month");
|
gtk_recent_filter_set_name (filter, "Since Last Month");
|
||||||
@ -295,7 +295,7 @@
|
|||||||
/* set the currently used filter */
|
/* set the currently used filter */
|
||||||
gtk_recent_chooser_set_filter (GTK_RECENT_CHOOSER (chooser), filter);
|
gtk_recent_chooser_set_filter (GTK_RECENT_CHOOSER (chooser), filter);
|
||||||
|
|
||||||
filter = gtk_recent_filter_new ();
|
filter = gtk_recent_filter_new (<!-- -->);
|
||||||
gtk_recent_filter_set_name (filter, "Every text file");
|
gtk_recent_filter_set_name (filter, "Every text file");
|
||||||
gtk_recent_filter_set_mime_type (filter, "text/plain");
|
gtk_recent_filter_set_mime_type (filter, "text/plain");
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user