In my application toolbar, I have two toolbar buttons Travel Planner and Departures as shown below,

I need to change it this,

As you can see in the 2nd image, it seems that 1 button has 3 actions combined in them. It is also similar to the Gnome Control Center style.
How can this be done?
