~ubuntu-branches/debian/experimental/gtk+2.0/experimental

« back to all changes in this revision

Viewing changes to gtk/gtkrecentaction.c

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-09-17 11:15:05 UTC
  • mto: (72.1.1 lenny) (1.4.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 55.
  • Revision ID: james.westby@ubuntu.com-20070917111505-giz9c5xltxkb5y54
Tags: upstream-2.12.0
ImportĀ upstreamĀ versionĀ 2.12.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
688
688
/**
689
689
 * gtk_recent_action_new:
690
690
 * @name: a unique name for the action
691
 
 * @label: the label displayed in menu items and on buttons
692
 
 * @tooltip: a tooltip for the action
693
 
 * @stock_id: the stock icon to display in widgets representing the action
 
691
 * @label: the label displayed in menu items and on buttons, or %NULL
 
692
 * @tooltip: a tooltip for the action, or %NULL
 
693
 * @stock_id: the stock icon to display in widgets representing the
 
694
 *   action, or %NULL
694
695
 *
695
696
 * Creates a new #GtkRecentAction object. To add the action to
696
697
 * a #GtkActionGroup and set the accelerator for the action,
706
707
                       const gchar *tooltip,
707
708
                       const gchar *stock_id)
708
709
{
 
710
  g_return_val_if_fail (name != NULL, NULL);
 
711
 
709
712
  return g_object_new (GTK_TYPE_RECENT_ACTION,
710
713
                       "name", name,
711
714
                       "label", label,
717
720
/**
718
721
 * gtk_recent_action_new_for_manager:
719
722
 * @name: a unique name for the action
720
 
 * @label: the label displayed in menu items and on buttons
721
 
 * @tooltip: a tooltip for the action
722
 
 * @stock_id: the stock icon to display in widgets representing the action
723
 
 * @manager: a #GtkRecentManager or %NULL
 
723
 * @label: the label displayed in menu items and on buttons, or %NULL
 
724
 * @tooltip: a tooltip for the action, or %NULL
 
725
 * @stock_id: the stock icon to display in widgets representing the
 
726
 *   action, or %NULL
 
727
 * @manager: a #GtkRecentManager, or %NULL for using the default
 
728
 *   #GtkRecentManager
724
729
 *
725
730
 * Creates a new #GtkRecentAction object. To add the action to
726
731
 * a #GtkActionGroup and set the accelerator for the action,
737
742
                                   const gchar      *stock_id,
738
743
                                   GtkRecentManager *manager)
739
744
{
 
745
  g_return_val_if_fail (name != NULL, NULL);
 
746
  g_return_val_if_fail (manager == NULL || GTK_IS_RECENT_MANAGER (manager), NULL);
 
747
 
740
748
  return g_object_new (GTK_TYPE_RECENT_ACTION,
741
749
                       "name", name,
742
750
                       "label", label,