<div>Hi,</div><div> </div><div>The patch looks good to me, and I'd like to have it merged.</div><div>Ristretto is also using GtkImageMenuItem, and this proposed functionality could be used in the gtk3 port.</div><div> </div><div>Igor</div><div> </div><div>04.02.2017, 04:59, "Florian Weigelt" <weigelt.florian@gmx.net>:</div><blockquote type="cite"><p>Please find attached a patch which adds some functionality to libxfce4ui<br />to use a GtkMenuItem with an icon without using the (in gtk3) deprecated<br />GtkImageMenuItem.<br />The code is based on the example given here:<br /><a href="https://developer.gnome.org/gtk3/stable/GtkImageMenuItem.html">https://developer.gnome.org/gtk3/stable/GtkImageMenuItem.html</a><br /><br />This function is not intended to be used for creating menu bars. Using<br />GtkBuilder with GMenu (which actually has an icon property) is by far<br />better suited for this purpose.<br />However, applications like xfdesktop and xfce4-panel also use<br />GtkImageMenuItem's and it would be nice to offer the same functionality<br />in a gtk3 port of these applications.<br /><br />I decided on those three parameters because those were the three<br />information usually available when I looked at xfdesktop's sources. It<br />is also possible to let the user create a GtkLabel first and pass this<br />widget to the function.<br />It would also be possible to exclude this function entirely from the<br />gtk2 build of libxfce4ui where GtkImageMenuItems weren't deprecated.<br />Please share your thoughts on this.<br /><br />Kind regards</p>,<p>_______________________________________________<br />Xfce4-dev mailing list<br /><a href="mailto:Xfce4-dev@xfce.org">Xfce4-dev@xfce.org</a><br /><a href="https://mail.xfce.org/mailman/listinfo/xfce4-dev">https://mail.xfce.org/mailman/listinfo/xfce4-dev</a></p></blockquote>