About XfconfChannel Object

ali abdallah ali.slackware at gmail.com
Sat Sep 20 13:42:12 CEST 2008


On Sat, Sep 20, 2008 at 12:32 PM, <xfce4-dev-request at xfce.org> wrote:

> Send Xfce4-dev mailing list submissions to
>        xfce4-dev at xfce.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        http://foo-projects.org/mailman/listinfo/xfce4-dev
> or, via email, send a message with subject or body 'help' to
>        xfce4-dev-request at xfce.org
>
> You can reach the person managing the list at
>        xfce4-dev-owner at xfce.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xfce4-dev digest..."
>
>
> Today's Topics:
>
>   1. Re: [PATCH] Make xfce4 start up faster (Grant McWilliams)
>   2. Re: Wiki page added to collect info on Linpus Linux (David Mohr)
>   3. Re: [Goodies-commits] r5421 - xfce4-battery-plugin/trunk/po
>      xfce4-screenshooter-plugin/trunk/po (Enrico Tr?ger)
>   4. About XfconfChannel Object (ali abdallah)
>   5. Re: About XfconfChannel Object (Jannis Pohlmann)
>   6. Re: About XfconfChannel Object (Brian J. Tarricone)
>   7. Re: About XfconfChannel Object (Ori Bernstein)
>   8. Re: [Xfce4-commits] r27912 - xfdesktop/trunk/modules/menu
>      (Jannis Pohlmann)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 15 Sep 2008 15:57:22 -0700
> From: "Grant McWilliams" <grantmasterflash at gmail.com>
> Subject: Re: [PATCH] Make xfce4 start up faster
> To: "XFCE4 development list" <xfce4-dev at xfce.org>
> Message-ID:
>        <ed123fa30809151557s1fa89cefx2ac93cd2e0ea08fd at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> On Mon, Sep 15, 2008 at 11:26 AM, Brian J. Tarricone <bjt23 at cornell.edu
> >wrote:
>
> > Grant McWilliams wrote:
> >
> > > Can we make sure there's a way of turning this off? In special cases I
> > need
> > > one thing to start before another because the second has a dependency
> on
> > the
> > > first. I guess the other way would be to have a script autostart which
> in
> > > turns starts the two thing synchronously.
> >
> >
> > Yes and no.  XSMP has a concept of startup priorities, which the current
> > patch doesn't support at all.  I'd like to be able to support this by
> > starting things in batches -- basically, for each prio level, start all
> > the apps in that prio level, an wait for them to either register with
> > the SM, or fail, and then move to the next prio level.  So, if you have
> > apps that have ordering requirements, and set the SM priority property,
> > then yeah, it'll work as you need it to.  Otherwise, it won't.
> >
> >        -brian
> >
>
> That would work for my application.
>
> --
> Grant McWilliams
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://foo-projects.org/pipermail/xfce4-dev/attachments/20080915/8277608a/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Mon, 15 Sep 2008 17:29:07 -0600
> From: "David Mohr" <squisher at xfce.org>
> Subject: Re: Wiki page added to collect info on Linpus Linux
> To: "XFCE4 development list" <xfce4-dev at xfce.org>
> Cc: XFCE general discussion list <xfce at xfce.org>
> Message-ID:
>        <472d4b250809151629s32b7e32cx6cd92621ec0910de at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On Mon, Sep 15, 2008 at 12:43 PM, Kok, Auke <sofar at foo-projects.org>
> wrote:
> > David Mohr wrote:
> >> Hi all,
> >> I just recently got a Acer Aspire One, and while poking a bit around
> >> in the system it's interesting to see what is Xfce, what is not, and
> >> most of all what parts of Xfce got modified! There has been some talk
> >> in the irc channel about this, but I thought it would be good to have
> >> a central place to collect this information. I added a page to the
> >> wiki:
> >>   http://wiki.xfce.org/aceraspireone
> >>
> >> It'd be great if everyone would add any info they find there, so that
> >> it can be available to a broader audience.
> >>
> >> Auke, if those kernel patches you mentioned some time ago are publicly
> >> available, it'd be great if you could add a link to them to the wiki.
> >>
> >> Thanks everyone, and let's see how much we can find out! Who knows,
> >> maybe there is even something worthy to get ported into Xfce proper
> >> ;-).
> >>
> >> ~David
> >
> >
> > the fastboot patches are either already in here or are going to be:
>
> Hehe, there aren't by chance any "fastresume" patches in the works?
> I've noticed that even with the stock kernel the aspire one already
> almost boots faster than it resumes!
>
> >
> http://git.kernel.org/?p=linux/kernel/git/arjan/linux-2.6-fastboot.git;a=summary
> >
> > some of this is already in linux-next as well.
> >
> > you can expect more patches to be released when moblin2 packages go
> online (some
> > of them already are I think, like some X patches).
> >
> > Cheers,
> >
> > Auke
>
> Thanks for the links,
> ~David
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 18 Sep 2008 17:22:03 +0200
> From: Enrico Tr?ger <enrico.troeger at uvena.de>
> Subject: Re: [Goodies-commits] r5421 - xfce4-battery-plugin/trunk/po
>        xfce4-screenshooter-plugin/trunk/po
> To: xfce4-dev at xfce.org
> Cc: Lars Nielsen <lars at xfce.org>
> Message-ID: <20080918172203.0bccb360.enrico.troeger at uvena.de>
> Content-Type: text/plain; charset="us-ascii"
>
> On Thu, 18 Sep 2008 14:43:07 +0000 (UTC), "Lars Nielsen"
> <lars at xfce.org> wrote:
>
> Hi,
>
>
> > Author: lars
> > Date: 2008-09-18 14:43:07 +0000 (Thu, 18 Sep 2008)
> > New Revision: 5421
> >
> > Modified:
> >    xfce4-battery-plugin/trunk/po/da.po
> >    xfce4-screenshooter-plugin/trunk/po/da.po
> > Log:
> >
>
> even it's quite obvious that you updated the Danish translation, IMO
> using SVN log messages are always a good idea as well as updating the
> po/ChangeLog file.
>
> Just my 2 cents.
>
>
> Regards,
> Enrico
>
> --
> Get my GPG key from http://www.uvena.de/pub.asc
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: not available
> Type: application/pgp-signature
> Size: 197 bytes
> Desc: not available
> Url :
> http://foo-projects.org/pipermail/xfce4-dev/attachments/20080918/d0f6f216/attachment-0001.bin
>
> ------------------------------
>
> Message: 4
> Date: Fri, 19 Sep 2008 15:42:14 +0200
> From: "ali abdallah" <ali.slackware at gmail.com>
> Subject: About XfconfChannel Object
> To: xfce4-dev at xfce.org
> Message-ID:
>        <94e2af6e0809190642o932dbadnc8bfa88b8a0047c3 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
>
> Why the XfconfChannel and XfconfChannelClass are defined in the
> xfconf-channel.c, i'm asking this question since i couldn't derive an
> object
> from the XfconfChannel object!
>
> Best Regards,
> Ali.
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://foo-projects.org/pipermail/xfce4-dev/attachments/20080919/6a6024ce/attachment-0001.html
>
> ------------------------------
>
> Message: 5
> Date: Fri, 19 Sep 2008 15:50:40 +0200
> From: Jannis Pohlmann <jannis at xfce.org>
> Subject: Re: About XfconfChannel Object
> To: xfce4-dev at xfce.org
> Message-ID: <20080919155040.26403494 at xfce.org>
> Content-Type: text/plain; charset=US-ASCII
>
> Am Fri, 19 Sep 2008 15:42:14 +0200
> schrieb "ali abdallah" <ali.slackware at gmail.com>:
>
> > Hi,
> >
> > Why the XfconfChannel and XfconfChannelClass are defined in the
> > xfconf-channel.c, i'm asking this question since i couldn't derive an
> > object from the XfconfChannel object!
>
> There are GObject type macros and typedefs for both structures
> in xfconf-channel.h which should be enough to derive a class from
> XfconfChannel. Just use G_DEFINE_TYPE in combination with
> XFCONF_TYPE_CHANNEL and the struct typedefs.
>
>  - Jannis
>
>
> ------------------------------
>
> Message: 6
> Date: Fri, 19 Sep 2008 10:36:10 -0700
> From: "Brian J. Tarricone" <bjt23 at cornell.edu>
> Subject: Re: About XfconfChannel Object
> To: XFCE4 development list <xfce4-dev at xfce.org>
> Message-ID: <48D3E30A.2000902 at cornell.edu>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> ali abdallah wrote:
> > Hi,
> >
> > Why the XfconfChannel and XfconfChannelClass are defined in the
> > xfconf-channel.c, i'm asking this question since i couldn't derive an
> object
> > from the XfconfChannel object!
>
> Er, why do you want to?  I assumed no one would.
>
> Not saying you don't have a valid use-case, but I'd rather not go and
> change things without a reason.
>
>        -b
>
I wanted to have an object wish is derived from XfconfChannel object and
contains more data and functions to be used in my application, then i can
call the *channel_get* and *channel_set* functions by casting the object to
XfconfChannel type, just like a GtkWidget and GtkButton for example.

I'm not asking any change, if this will stay like that i'll respect the API
of xfconf ( but i rarely see the object struct and class struct defined in
the .c source), but it's not a big issue, anyway xfconf is alreay a perfect
application to use.

Note: xfconf-query gives segmentation fault if the daemon is not running.

Many thanks,
Best Regards,
Ali. ( Sorry for sending this message two times).


>
>
>
> ------------------------------
>
> Message: 7
> Date: Fri, 19 Sep 2008 18:14:07 -0400
> From: Ori Bernstein <ori at eigenstate.org>
> Subject: Re: About XfconfChannel Object
> To: xfce4-dev at xfce.org
> Message-ID: <20080919181407.5abec6a6.ori at eigenstate.org>
> Content-Type: text/plain; charset=US-ASCII
>
> On Fri, 19 Sep 2008 15:50:40 +0200
> Jannis Pohlmann <jannis at xfce.org> wrote:
>
> > There are GObject type macros and typedefs for both structures
> > in xfconf-channel.h which should be enough to derive a class from
> > XfconfChannel. Just use G_DEFINE_TYPE in combination with
> > XFCONF_TYPE_CHANNEL and the struct typedefs.
>
> That's not enough; you need the actual struct (well, size of the struct)
> in order to derive from it; That's because you need the 'parent' member
> in your object struct.
>
> That said, to the OP: Why do you need to extend it?
>
> --
>    Ori Bernstein
>
>
> ------------------------------
>
> Message: 8
> Date: Sat, 20 Sep 2008 12:32:13 +0200
> From: Jannis Pohlmann <jannis at xfce.org>
> Subject: Re: [Xfce4-commits] r27912 - xfdesktop/trunk/modules/menu
> Cc: xfce4-dev at xfce.org
> Message-ID: <20080920123213.089230aa at xfce.org>
> Content-Type: text/plain; charset=US-ASCII
>
> Am Sat, 20 Sep 2008 05:43:26 +0000 (UTC)
> schrieb "Brian Tarricone" <kelnos at xfce.org>:
>
> > Author: kelnos
> > Date: 2008-09-20 05:43:26 +0000 (Sat, 20 Sep 2008)
> > New Revision: 27912
> >
> > Modified:
> >    xfdesktop/trunk/modules/menu/desktop-menu.c
> > Log:
> > fix menu module crash on .desktop file change or icon theme change
> > (bug 3615)
> >
> > this also fixes the weird "double menu" problem (bug 4342).  what was
> > happening was that thunar-vfs was firing off a dir change
> > notification, and then the menu would start to regenerate.  then it
> > would call into GtkIconTheme, which then noticed that the icon cache
> > was stale and needed to be re-read.  so then it would fire
> > GtkIconTheme::changed, which causes a recursive menu regeneration.
> > since the menu generation function isn't reentrant, now we use
> > g_idle_add() to schedule a menu regen, and we don't schedule one if
> > there's one already scheduled or in progress.
>
> Awesome! You just fixed our number one bug. I tested it and it seems to
> work fine. No crashes, warnings or whatsoever.
>
>  - Jannis
>
>
> ------------------------------
>
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://foo-projects.org/mailman/listinfo/xfce4-dev
>
> End of Xfce4-dev Digest, Vol 58, Issue 21
> *****************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20080920/f0d43718/attachment.html>


More information about the Xfce4-dev mailing list