Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: New Feature To Wayland's Weston: A Clock

  1. #1
    Join Date
    Jan 2007
    Posts
    14,359

    Default New Feature To Wayland's Weston: A Clock

    Phoronix: New Feature To Wayland's Weston: A Clock

    If not being able to tell the time while running the reference Weston compositor held you back from experimenting with Wayland, fear not. Logging functionality for Weston was also merged...

    http://www.phoronix.com/vr.php?view=MTExNjc

  2. #2
    Join Date
    Oct 2008
    Posts
    143

    Default

    I've only been taught java, but can someone explain to me what this piece of code does (from the patch)?

    + clock->panel = panel;
    + panel->clock = clock;

  3. #3

    Default Error in the text

    Developer comes from Slovakia, not Slovenia.
    .sk = Slovakia
    .si = Slovenia

  4. #4
    Join Date
    Jan 2010
    Location
    Portugal
    Posts
    944

    Default

    Quote Originally Posted by crispy View Post
    I've only been taught java, but can someone explain to me what this piece of code does (from the patch)?

    + clock->panel = panel;
    + panel->clock = clock;
    AFAIK that's equivalent to clock.panel = panel; panel.clock = clock; in java. I suppose that just allows to easy reference the clock and the panel from each other. I don't know if that's what you wanted to know or if you already knew that, so sorry if I'm repeating something you already know.

  5. #5
    Join Date
    Jul 2011
    Posts
    6

    Default slovenia != slovakia

    oh michael, you gotta be kidding me.. being on your level you just cannot afford mixing slovakia and slovenia.. :-( j

  6. #6

    Default

    Quote Originally Posted by jose1711 View Post
    oh michael, you gotta be kidding me.. being on your level you just cannot afford mixing slovakia and slovenia.. :-( j
    When looking at the WIkipedia page originally when tracing through his university it said Slovenia.

  7. #7
    Join Date
    Jul 2011
    Posts
    6

  8. #8
    Join Date
    Jan 2009
    Posts
    1,601

    Default

    Pics people, pics.

    The only wayland dev that publishes pics and videos from his work is Pekka.

    I know its not their job but its good to see whats being implemented.

  9. #9
    Join Date
    Oct 2008
    Posts
    3,036

    Default

    Quote Originally Posted by crispy View Post
    I've only been taught java, but can someone explain to me what this piece of code does (from the patch)?

    + clock->panel = panel;
    + panel->clock = clock;
    In this code, both clock and panel are pointers instead of local objects. (Type *Clock and *Panel instead of Clock and Panel).

    In Java, every object is a pointer, so the language just hides that from you.

    In C++, you have to dereference pointers to get to their contents. One of the common ways is to use -> instead of ., to access members of that class.

  10. #10
    Join Date
    Apr 2008
    Location
    Zagreb, Croatia
    Posts
    100

    Default

    There's no way I'm buying it until it gets reversi.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •