Allow NULL to mean the default manager. (#344530, John Finlay)

2006-06-10  Matthias Clasen <mclasen@redhat.com>

        * gtk/gtkrecentchooserwidget.c
        (gtk_recent_chooser_widget_new_for_manager):
        * gtk/gtkrecentchoosermenu.c
        (gtk_recent_chooser_menu_new_for_manager):
        Allow NULL to mean the default manager.  (#344530,
        John Finlay)
This commit is contained in:
Matthias Clasen 2006-06-11 03:13:50 +00:00 committed by Matthias Clasen
parent a803836657
commit 3eb71f1fdd
4 changed files with 16 additions and 2 deletions

View File

@ -1,5 +1,12 @@
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentchooserwidget.c
(gtk_recent_chooser_widget_new_for_manager):
* gtk/gtkrecentchoosermenu.c
(gtk_recent_chooser_menu_new_for_manager):
Allow NULL to mean the default manager. (#344530,
John Finlay)
* gtk/gtkprintoperation-unix.c (page_setup_data_free):
Check if rdata->page_setup is set before unreffing it.
(#344518, Christian Persch)

View File

@ -1,5 +1,12 @@
2006-06-10 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentchooserwidget.c
(gtk_recent_chooser_widget_new_for_manager):
* gtk/gtkrecentchoosermenu.c
(gtk_recent_chooser_menu_new_for_manager):
Allow NULL to mean the default manager. (#344530,
John Finlay)
* gtk/gtkprintoperation-unix.c (page_setup_data_free):
Check if rdata->page_setup is set before unreffing it.
(#344518, Christian Persch)

View File

@ -1179,7 +1179,7 @@ gtk_recent_chooser_menu_new (void)
GtkWidget *
gtk_recent_chooser_menu_new_for_manager (GtkRecentManager *manager)
{
g_return_val_if_fail (GTK_IS_RECENT_MANAGER (manager), NULL);
g_return_val_if_fail (manager == NULL || GTK_IS_RECENT_MANAGER (manager), NULL);
return g_object_new (GTK_TYPE_RECENT_CHOOSER_MENU,
"recent-manager", manager,

View File

@ -183,7 +183,7 @@ gtk_recent_chooser_widget_new (void)
GtkWidget *
gtk_recent_chooser_widget_new_for_manager (GtkRecentManager *manager)
{
g_return_val_if_fail (GTK_IS_RECENT_MANAGER (manager), NULL);
g_return_val_if_fail (manager == NULL || GTK_IS_RECENT_MANAGER (manager), NULL);
return g_object_new (GTK_TYPE_RECENT_CHOOSER_WIDGET,
"recent-manager", manager,