Re: Sharing widgets between GNOME 3 applications

2012-06-06 Thread Bastien Nocera
On Mon, 2012-05-07 at 13:45 +, Debarshi Ray wrote:
 The newly designed (or redesigned) GNOME 3 applications have some
 common UI elements. For example, if you look at the following designs,
 you will notice that the main toolbar, selection toolbar, main icon
 view, etc. are quite similar: +
 https://live.gnome.org/Design/Apps/Boxes +
 https://live.gnome.org/Design/Apps/Documents +
 https://live.gnome.org/Design/Apps/Photos
 
 We may benefit from having a way to share these widgets among the
 applications.  Currently, what I have been doing, for gnome-photos, is
 to copy-paste the *.c/*.h files from the gnome-documents tree.
 
 One downside of doing this is that the gnome-photos binary has some
 dead code which will never be executed. For example the code path that
 implements the list view for Documents, which is not necessary for
 Photos. So all the classes implementing it need to be copied over into
 the gnome-photos tree to avoid maintaining a fork of the GdMainView
 widget.
 
 Currently it is not so much of a practical problem, but I am curious
 to know if people have better ideas about this.

If you write any new custom widgets, feel free to add them to:
https://live.gnome.org/Design/Whiteboards/CustomAppWidgets

See also 2 widgets I'm trying to get added to GTK+:
https://bugzilla.gnome.org/show_bug.cgi?id=652809
https://bugzilla.gnome.org/show_bug.cgi?id=668013

Cheers

___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: Sharing widgets between GNOME 3 applications

2012-05-09 Thread Alexander Larsson
On Mon, 2012-05-07 at 11:54 -0400, Erick Pérez Castellanos wrote:
 The way I see it, is that we need to provide some widgets to do the
 stuff following the guldelines of the new Gnome Design
 As Allan says here [1], there's a new kind of toolbar, which have some
 stuff in common, and it will be worthy to look into the possibility of
 make a specific widget for it, and the sames goes for those new kinds of
 iconviews, and for the selection patterns as well.
 
 [1](http://afaikblog.wordpress.com/2012/02/10/a-new-approach-to-gnome-application-design/)

Obviously the long term goal is to have a solid design language coupled
with Gtk+/Clutter features that makes it easy to use, but while the
design is being evolved we don't want to risk putting too much into the
core platform, as anything there are highly frozen and API/ABI stable.

So, i think sharing code by different means is the best approach for
now. The git subtree stuff seems like a good candidate for this.

___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Sharing widgets between GNOME 3 applications

2012-05-07 Thread Debarshi Ray
The newly designed (or redesigned) GNOME 3 applications have some
common UI elements. For example, if you look at the following designs,
you will notice that the main toolbar, selection toolbar, main icon
view, etc. are quite similar: +
https://live.gnome.org/Design/Apps/Boxes +
https://live.gnome.org/Design/Apps/Documents +
https://live.gnome.org/Design/Apps/Photos

We may benefit from having a way to share these widgets among the
applications.  Currently, what I have been doing, for gnome-photos, is
to copy-paste the *.c/*.h files from the gnome-documents tree.

One downside of doing this is that the gnome-photos binary has some
dead code which will never be executed. For example the code path that
implements the list view for Documents, which is not necessary for
Photos. So all the classes implementing it need to be copied over into
the gnome-photos tree to avoid maintaining a fork of the GdMainView
widget.

Currently it is not so much of a practical problem, but I am curious
to know if people have better ideas about this.

Happy hacking,
Debarshi


-- 
Give a man ssh access, he'll still need a computer. Give him a computer, he'll
give ssh access to you.  -- Ashish Shukla


pgpeAbZEigTlR.pgp
Description: PGP signature
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Re: Sharing widgets between GNOME 3 applications

2012-05-07 Thread Cosimo Cecchi
Hey Debarshi,

On Mon, 2012-05-07 at 13:45 +, Debarshi Ray wrote:

 We may benefit from having a way to share these widgets among the
 applications.  Currently, what I have been doing, for gnome-photos, is
 to copy-paste the *.c/*.h files from the gnome-documents tree.
 
 One downside of doing this is that the gnome-photos binary has some
 dead code which will never be executed. For example the code path that
 implements the list view for Documents, which is not necessary for
 Photos. So all the classes implementing it need to be copied over into
 the gnome-photos tree to avoid maintaining a fork of the GdMainView
 widget.
 
 Currently it is not so much of a practical problem, but I am curious
 to know if people have better ideas about this.

Yeah, I agree we could do better. I don't think another shared library
would be the best solution though; maybe a better approach could be
splitting these common bits in a separate git module and have projects
import it using git submodule [1] (or git subtree? [2]).
This way, maintenance of the common bits could still be managed in a
single place, and different projects could even depend on different
revisions of the shared code if they want (I believe if we use git
subtree this could go as far as even maintaining an additional patchset
on top of the shared tree).
What do you think?

[1] http://git-scm.com/book/en/Git-Tools-Submodules
[2] http://git-scm.com/book/en/Git-Tools-Subtree-Merging

___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: Sharing widgets between GNOME 3 applications

2012-05-07 Thread Alexandre Franke
Hi,

On Mon, May 7, 2012 at 3:45 PM, Debarshi Ray rishi...@lostca.se wrote:
 The newly designed (or redesigned) GNOME 3 applications have some
 common UI elements. For example, if you look at the following designs,
 you will notice that the main toolbar, selection toolbar, main icon
 view, etc. are quite similar:

Sorry for being so naive but why couldn't this be part of GTK+?

-- 
Alexandre Franke
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list


Re: Sharing widgets between GNOME 3 applications

2012-05-07 Thread Debarshi Ray
 The newly designed (or redesigned) GNOME 3 applications have some
 common UI elements. For example, if you look at the following designs,
 you will notice that the main toolbar, selection toolbar, main icon
 view, etc. are quite similar:
 
 Sorry for being so naive but why couldn't this be part of GTK+?

The applications are young, the designs are young, which means they are still
evolving. Putting them in GTK+ is risky because of API/ABI guarantees.

Happy hacking,
Debarshi

-- 
Give a man ssh access, he'll still need a computer. Give him a computer, he'll
give ssh access to you.  -- Ashish Shukla


pgpT4TQPcZFpf.pgp
Description: PGP signature
___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list

Re: Sharing widgets between GNOME 3 applications

2012-05-07 Thread Erick Pérez Castellanos
The way I see it, is that we need to provide some widgets to do the
stuff following the guldelines of the new Gnome Design
As Allan says here [1], there's a new kind of toolbar, which have some
stuff in common, and it will be worthy to look into the possibility of
make a specific widget for it, and the sames goes for those new kinds of
iconviews, and for the selection patterns as well.

[1](http://afaikblog.wordpress.com/2012/02/10/a-new-approach-to-gnome-application-design/)



___
desktop-devel-list mailing list
desktop-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/desktop-devel-list