~kamstrup/winwrangler/winwrangler-0.1

« back to all changes in this revision

Viewing changes to src/ww-tray.c

  • Committer: "Mikkel Kamstrup Erlandsen"
  • Date: 2008-10-29 21:07:37 UTC
  • Revision ID: mikkel.kamstrup@gmail.com-20081029210737-aurfexr5fqvwkzw3
Add labels to layouts

Show diffs side-by-side

added added

removed removed

Lines of Context:
82
82
        gint i;
83
83
        for (i = 0; i < num_layouts; i++)
84
84
        {
85
 
                g_debug ("Adding GtkAction '%s'", layouts[i].name);
 
85
                g_debug ("Adding GtkActionEntry '%s'", layouts[i].name);
86
86
                entries[i].name = layouts[i].name;
87
 
                entries[i].label = layouts[i].name;
 
87
                entries[i].label = layouts[i].label;
88
88
                entries[i].tooltip = layouts[i].desc;
 
89
                entries[i].accelerator = layouts[i].default_hotkey; // FIXME: Hardcoded hotkey
89
90
                entries[i].callback = G_CALLBACK (dispatch_layout_handler);
90
91
        }
91
92
        
102
103
        /* FIXME: This should be autogenerated */
103
104
        return g_strdup ("<ui>"
104
105
                     "  <popup>"
105
 
                                         "      <menuitem name=\"Expand\" action=\"expand\"/>"
106
 
                                         "      <menuitem name=\"Tile\" action=\"tile\"/>"
 
106
                                         "      <menuitem action=\"expand\"/>"
 
107
                                         "      <menuitem action=\"tile\"/>"
107
108
                                         "  </popup>"
108
109
                                         "</ui>");
109
110
}