~dbusmenu-team/libdbusmenu/ubuntu

« back to all changes in this revision

Viewing changes to libdbusmenu-gtk/genericmenuitem.c

  • Committer: Ken VanDine
  • Date: 2011-02-23 16:50:08 UTC
  • mfrom: (3.149.5 trunk)
  • Revision ID: ken.vandine@canonical.com-20110223165008-37wwvx5hwp5m2x6t
* Merged from trunk (rev 220) 
  - Cleaning up cleaning up so we don't unref twice and crash
  - Fixing the signatures to make them more consistent
  - Adding defaults to translatable files
  - Support a set of defaults and not sending them over the bus.
  - Fixing annotations and adding tests with python.

Show diffs side-by-side

added added

removed removed

Lines of Context:
278
278
}
279
279
 
280
280
/**
281
 
        genericmenuitem_set_check_type:
282
 
        @item: #Genericmenuitem to set the type on
283
 
        @check_type: Which type of check should be displayed
284
 
 
285
 
        This function changes the type of the checkmark that
286
 
        appears in the left hand gutter for the menuitem.
 
281
 * genericmenuitem_set_check_type:
 
282
 * @item: #Genericmenuitem to set the type on
 
283
 * @check_type: Which type of check should be displayed
 
284
 * 
 
285
 * This function changes the type of the checkmark that
 
286
 * appears in the left hand gutter for the menuitem.
287
287
*/
288
288
void
289
289
genericmenuitem_set_check_type (Genericmenuitem * item, GenericmenuitemCheckType check_type)
317
317
}
318
318
 
319
319
/**
320
 
        genericmenuitem_set_state:
321
 
        @item: #Genericmenuitem to set the type on
322
 
        @check_type: What is the state of the check 
323
 
 
324
 
        Sets the state of the check in the menu item.  It does
325
 
        not require, but isn't really useful if the type of
326
 
        check that the menuitem is set to #GENERICMENUITEM_CHECK_TYPE_NONE.
327
 
*/
 
320
 * genericmenuitem_set_state:
 
321
 * @item: #Genericmenuitem to set the type on
 
322
 * @check_type: What is the state of the check 
 
323
 * 
 
324
 * Sets the state of the check in the menu item.  It does
 
325
 * not require, but isn't really useful if the type of
 
326
 * check that the menuitem is set to #GENERICMENUITEM_CHECK_TYPE_NONE.
 
327
 */
328
328
void
329
329
genericmenuitem_set_state (Genericmenuitem * item, GenericmenuitemState state)
330
330
{
377
377
}
378
378
 
379
379
/**
380
 
        genericmenuitem_set_image:
381
 
        @item: A #Genericmenuitem
382
 
        @image: The image to set as the image of @item
383
 
 
384
 
        Sets the image of the menu item.
 
380
 * genericmenuitem_set_image:
 
381
 * @item: A #Genericmenuitem
 
382
 * @image: The image to set as the image of @item
 
383
 * 
 
384
 * Sets the image of the menu item.
385
385
*/
386
386
void
387
387
genericmenuitem_set_image (Genericmenuitem * menu_item, GtkWidget * image)
439
439
}
440
440
 
441
441
/**
442
 
        genericmenuitem_get_image:
443
 
        @item: A #Genericmenuitem
444
 
 
445
 
        Returns the image if there is one.
446
 
 
447
 
        Return value: A pointer to the image of the item or #NULL
448
 
                if there isn't one.
 
442
 * genericmenuitem_get_image:
 
443
 * @item: A #Genericmenuitem
 
444
 * 
 
445
 * Returns the image if there is one.
 
446
 * 
 
447
 * Return value: (transfer none): A pointer to the image of the item or #NULL
 
448
 *      if there isn't one.
449
449
*/
450
450
GtkWidget *
451
451
genericmenuitem_get_image (Genericmenuitem * menu_item)