News from porting xfce4-notifyd

flo.xfce at gmx-topmail.de flo.xfce at gmx-topmail.de
Sat Aug 1 19:33:05 CEST 2015


Yeah you're right. The easy fixes are so quick that I forget to look
which version introduced the replacement. I don't want to start a
discussion here, but Gtk3.14 - why? 3.18 wis supposed to be out in two
months. Looking at the development speed of Xfce every distribution,
even the slow ones like Debian, will ship with a Gtk version at least
3.16. But fine, let it be 3.14.
I just removed the x/valign setters.
If the notifications are readable or not depends on the theme. While
some look quite ok, others don't work at all. The annoying thing are
the corners where the background is painted anyway, outside of the
rounded border.
Thanks for the links. Let's see what I can make of those.

On 08/01/2015 05:54 PM, Simon Steinbeiß wrote:
> Hi again!
> 
> 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. [1])
> 
> 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 [2], which supports both Gtk2 and Gtk3 and even the power
> manager's panel plugin makes some use of it [3].
> 
> Cheers Simon
> 
> 
> [1] https://developer.gnome.org/gtk3/3.14/GtkLabel.html [2] Look
> here for instance:
> http://git.xfce.org/panel-plugins/xfce4-notes-plugin/commit/?id=5e59d5
eafb9e91135160fd5ecb47c5a33a136556
>
> 
[3]
http://git.xfce.org/xfce/xfce4-power-manager/tree/panel-plugins/power-ma
nager-plugin/power-manager-button.c#n1013
> 
> 
> 
> 
> On Sat, 1 Aug 2015 17:28:55 +0200 flo.xfce at gmx-topmail.de wrote:
> 
>> Hey 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.
>> 
>> Regards Flo _______________________________________________ 
>> Xfce4-dev mailing list Xfce4-dev at xfce.org 
>> https://mail.xfce.org/mailman/listinfo/xfce4-dev
> _______________________________________________ Xfce4-dev mailing
> list Xfce4-dev at xfce.org 
> https://mail.xfce.org/mailman/listinfo/xfce4-dev
> 


More information about the Xfce4-dev mailing list