I'm stuck with that problem for two weeks already and it seems like Unity panel is ignoring any kind of markup in it's indicators.
I'm using Gtk.Builder() to build an AppIndicator's menu. The goal is to have a MenuItem with two labels inside it (one on the left and one on the right), but for some reason, the second label gets ignored and only the first one is rendered correctly. I'm pretty certain its possible, because Calendar widget on Ubuntu have the same kind of MenuItem in it (in Appointments and Timezone sections).
Code:
<interface> <requireslib="gtk+"version="3.12"/> <!-- interface-naming-policy project-wide --> <objectclass="GtkMenu"> <propertyname="visible">True</property> <propertyname="can_focus">False</property> <child> <objectclass="GtkMenuItem"> <propertyname="visible">True</property> <child> <objectclass="GtkBox"id="box"> <propertyname="visible">True</property> <propertyname="can_focus">False</property> <child> <objectclass="GtkLabel"> <propertyname="visible">True</property> <propertyname="label"translatable="yes">Label 1</property> <propertyname="use_underline">True</property> <propertyname="halign">start</property> </object> </child> <child> <objectclass="GtkLabel"> <propertyname="visible">True</property> <propertyname="label"translatable="yes">Label 2</property> <propertyname="use_underline">True</property> <propertyname="halign">end</property> </object> </child> </object> </child> </object> </child> </object> </interface>
1. set_markup method on a label with various markup approaches.
2. HBox packing.
3. Many other things, like using Label with Mnemonic and so on.
Am I missing something? Thanks in advance!
برچسب:
نویسنده: استخدام کار