News from porting xfce4-notifyd
simon at xfce.org
Sat Aug 1 17:54:07 CEST 2015
I quickly pulled and noticed that you're using some calls that were introduced with Gtk3.16, notably gtk_label_set_xalign and gtk_label_set_yalign. Please keep in mind that Xfce 4.14 targets Gtk>=3.14, so please use code that still works with Gtk3.14. (To the worst use ifdefs so things still build and work with Gtk3.14, I guess in your case it would be either gtk_label_set_justify or gtk_widget_set_h/valign. )
I only took a brief look, your branch seems to build ok (with a few deprecation warnings left, but style/stylecontext related), and the configuration dialog works ok too. The notifications are displayed but their not readable. (I presume you know all this, just posting it for others since you didn't mention the status quo.)
I'll try to take a look later at your remaining deprecations. For the use of GtkStyleContext you could for instance look at the notes plugin , which supports both Gtk2 and Gtk3 and even the power manager's panel plugin makes some use of it .
 Look here for instance: http://git.xfce.org/panel-plugins/xfce4-notes-plugin/commit/?id=5e59d5eafb9e91135160fd5ecb47c5a33a136556
On Sat, 1 Aug 2015 17:28:55 +0200
flo.xfce at gmx-topmail.de wrote:
> So I fixed some deprecations and added widget names for the notification
> icon and the button box.
> I also played around with GtkStyleContext and CSS files but without
> success. Although GtkStyle still works somehow, I would prefer using
> GtkStyleContext. It might be more work but it's worth the effort. CSS
> styling will be future-proof for quite some years and adds a variety of
> new possibilities (see the "why design matters" discussion) which could
> improve Xfce's look. It would also benefit other apps if we can gain
> profiency in working with GtkStyleContext because some other ports to
> Gtk3 will require this (like setting a background image in
> xfce4-terminal with vte3).
> My working repository is here: https://github.com/Flow-It/xfce4-notifyd
> If you find the time, please review the commits and give feedback. If
> you have even more time I would be greatly interested in working
> together on the styling part to finish this port.
> If you don't have the time: Do you know projects which were already
> ported to GtkStyleContext? Reading through the documentation gives me
> not enough information and I would like to study others' commits.
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
More information about the Xfce4-dev