Menu

request: changing order of applets + possible bug: panel systray applet display

EDE
J G Miller
2018-05-11
2018-05-22
  • J G Miller

    J G Miller - 2018-05-11

    Yes I know that it clearly states that the order of widgets on the EDE panel is currently fixed and one day may respect the order specifiede in ede-panel.conf.

    So as I only want to change the order of those after taskbar to

    system_tray,cpu_monitor,mem_monitor,clock
    

    I decided to dig into the code and see if a simple re-ordering to my preference was possible.

    I thought the order was being determined by this list of items in Panel.cpp, so changed the order there

    #ifndef EDE_PANEL_LOCAL_APPLETS
                    "start_menu,"
                    "quick_launch,"
                    "pager,"
                    "taskbar,"
                    "system_tray"
                    "cpu_monitor,"
    # ifdef __linux__
                    "mem_monitor,"
    # endif
                    "battery_monitor,"
                    "keyboard_layout,"
                    "clock,"
    #else /* EDE_PANEL_LOCAL_APPLETS */
                    "./applets/start-menu/start_menu,"
                    "./applets/quick-launch/quick_launch,"
                    "./applets/pager/pager,"
                    "./applets/taskbar/taskbar,"
                    "./applets/system-tray/system_tray"
                    "./applets/cpu-monitor/cpu_monitor,"
    # ifdef __linux__
                    "./applets/mem-monitor/mem_monitor,"
    # endif
                    "./applets/battery-monitor/battery_monitor,"
                    "./applets/keyboard-layout/keyboard_layout,"
                    "./applets/clock/clock,"
    #endif /* EDE_PANEL_LOCAL_APPLETS */
    

    After recompiling and launching ede-panel, the order of applets was not changed.

    Obviously I am not understanding the code correctly, and after further examination, do not see exactly, how the order is being determined, other than via EDE_PANEL_APPLET_OPTION_property hardcoded into each applet source file and queried in panel::do_layout and thus not so simple to adjust to get my preferred order.

    Also in my testing there appears to possibly be a bug in the systray applet display because it is only showing the HP icon for hp-systray)when I should also be seeing an icon for parcellite, pasystray, and pidgin, making a total of 4 (which all appear in "stalonetray" and the systray of other panels eg bmpanel2, fbpanel).

     

    Last edit: J G Miller 2018-05-11
  • Sanel Zukan

    Sanel Zukan - 2018-05-22

    Hi,

    In ~/.config/ede/ede-panel.conf, try this:

    [Panel]
    applets=system_tray,cpu_monitor,mem_monitor,start_menu,clock,taskbar
    

    Panel layout engine is kind-of messy and some applets aligns to left-only and some to right-only positions. This should be changed.

    For now, ordering is a bit limited.

    Also in my testing there appears to possibly be a bug in the systray applet display because it is only showing the HP icon for hp-systray)when I should also be seeing an icon for parcellite, pasystray, and pidgin,

    Are you using standard panel or modified one?

     

Log in to post a comment.

MongoDB Logo MongoDB