~larsu/indicator-messages/set-status-return-value

« back to all changes in this revision

Viewing changes to src/gmenuutils.h

  • Committer: Tarmac
  • Author(s): Lars Uebernickel
  • Date: 2013-09-09 14:32:02 UTC
  • mfrom: (375.2.6 use-gicon-serialize)
  • Revision ID: tarmac-20130909143202-iip1qcm9w2mcqq6w
Use g_icon_serialize() instead of g_icon_to_string().

Approved by Charles Kerr, PS Jenkins bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright 2012 Canonical Ltd.
3
 
 *
4
 
 * This program is free software: you can redistribute it and/or modify it
5
 
 * under the terms of the GNU General Public License version 3, as published
6
 
 * by the Free Software Foundation.
7
 
 *
8
 
 * This program is distributed in the hope that it will be useful, but
9
 
 * WITHOUT ANY WARRANTY; without even the implied warranties of
10
 
 * MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
11
 
 * PURPOSE.  See the GNU General Public License for more details.
12
 
 *
13
 
 * You should have received a copy of the GNU General Public License along
14
 
 * with this program.  If not, see <http://www.gnu.org/licenses/>.
15
 
 *
16
 
 * Authors:
17
 
 *     Lars Uebernickel <lars.uebernickel@canonical.com>
18
 
 */
19
 
 
20
 
#ifndef __G_MENU_UTILS_H__
21
 
#define __G_MENU_UTILS_H__
22
 
 
23
 
#include <gio/gio.h>
24
 
 
25
 
int     g_menu_find_section             (GMenu *menu,
26
 
                                         GMenuModel *section);
27
 
 
28
 
void    g_menu_append_with_icon         (GMenu *menu,
29
 
                                         const gchar *label,
30
 
                                         GIcon *icon,
31
 
                                         const gchar *detailed_action);
32
 
 
33
 
void    g_menu_append_with_icon_name    (GMenu *menu,
34
 
                                         const gchar *label,
35
 
                                         const gchar *icon_name,
36
 
                                         const gchar *detailed_action);
37
 
 
38
 
#endif