~3v1n0/unity/gnome-keys-timestamp-api

« back to all changes in this revision

Viewing changes to tests/test_panel_service.cpp

  • Committer: CI Train Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2015-02-19 19:33:36 UTC
  • mfrom: (3899.2.85 lim-everywhere)
  • Revision ID: ci-train-bot@canonical.com-20150219193336-1ax9aswzdijrfq0f
Decorations, Panel: add menus for unfocused windows as well

Now the indicator-appmenu exports the menus for all the windows,
then it's up to us to filter them based on their parent window and
show on relevant place.
Also, set LIM as default now. Fixes: #1309778
Approved by: Andrea Azzarone, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
{
33
33
typedef std::tuple<glib::Object<GtkLabel>, glib::Object<GtkImage>> EntryObjects;
34
34
 
35
 
const std::string SYNC_ENTRY_VARIANT_FORMAT = "(ssssbbusbbi)";
36
 
const std::string SYNC_ENTRIES_VARIANT_FORMAT = "(a"+SYNC_ENTRY_VARIANT_FORMAT+")";
 
35
const std::string SYNC_ENTRY_VARIANT_FORMAT = ENTRY_SIGNATURE;
 
36
const std::string SYNC_ENTRIES_VARIANT_FORMAT = "(" ENTRY_ARRAY_SIGNATURE ")";
37
37
 
38
38
struct TestPanelService : Test
39
39
{
46
46
    std::string indicator_id;
47
47
    std::string entry_id;
48
48
    std::string entry_name_hint;
 
49
    uint32_t parent_window;
49
50
    std::string label;
50
51
    bool label_sensitive;
51
52
    bool label_visible;
63
64
    gchar* indicator_id;
64
65
    gchar* entry_id;
65
66
    gchar* entry_name_hint;
 
67
    guint32 parent_window;
66
68
    gchar* label;
67
69
    gboolean label_sensitive;
68
70
    gboolean label_visible;
77
79
                               &indicator_id,
78
80
                               &entry_id,
79
81
                               &entry_name_hint,
 
82
                               &parent_window,
80
83
                               &label,
81
84
                               &label_sensitive,
82
85
                               &label_visible,
89
92
      results.push_back({ glib::gchar_to_string(indicator_id),
90
93
                          glib::gchar_to_string(entry_id),
91
94
                          glib::gchar_to_string(entry_name_hint),
 
95
                          parent_window,
92
96
                          glib::gchar_to_string(label),
93
97
                          label_sensitive != FALSE,
94
98
                          label_visible != FALSE,