[MonoDevelop] Stripped down GTK# notebook tabs for monodevelop

Anirudh anirudh at anirudhsanjeev.org
Fri Apr 17 03:05:09 EDT 2009


Hi,

I got a demo of the screen space saving tab implementation nearly working,
just have a small GTK# issue.

The tab label is derived from a GTK# HBox. I have to remove and re-enable
the icon and close button on the fly. I tried deleting and re-creating them
but gtk# threw up some error regarding Reparenting of widgets, so now I'm
changing the visibility, which makes it work, though there's still a small
bit of padding left behind.

Can someone who's worked with it tell me which is the optimum way of dealing
with a GTK# Hbox? I'm not able to find any documentation on how to
manipulate the GtkContainer objects?

Thanks,
Andy

On Tue, Apr 14, 2009 at 12:46 AM, Vadim Chekan <kot.begemot at gmail.com>wrote:

> I totally agree with "every pixel counts" strategy. And it apply for
> monitor of any size.
>
> What about hiding icon if the file is of "default type" for particular
> project type?
> For example in C# project hide icon for C# files but show the icon for
> .txt files.
>
> Vadim.
>
> On Fri, Apr 10, 2009 at 9:58 AM, Michael Hutchinson
> <m.j.hutchinson at gmail.com> wrote:
> > On Wed, Apr 8, 2009 at 2:33 PM, Anirudh <anirudh at anirudhsanjeev.org>
> wrote:
> >> Hi,
> >>
> >> I wasn't liking the default tab display of MonoDevelop. It used up too
> much
> >> space, combined with C#'s usual long filenames, I'd see only two or
> three
> >> tabs at a go. I tried hacking a more frugal tab label system, and was
> sort
> >> of successful.
> >>
> >> I changed MonoDevelop.Components.TabLabel and
> >> Monodevelop.ide.gui.sdiworkspacewindow and made the following changes:
> >>
> >> 1. Removed icon and the close button - Ctrl+W and middle click works
> fine
> >> for me.
> >> 2. Stripped text to 7 characters and added ellipsis.
> >>
> >> I've attached before and after screenshots. You can take a look and get
> a
> >> better idea of what I have in mind.
> >> The best option is to settle for a middle-ground and write a system
> which
> >> automatically shortens titles when there are more tabs opened. Firefox
> has a
> >> robust implementation of this, and it doesn't seem simple to implement.
> >>
> >> I wanted your opinions on my change, whether something like this would
> help
> >> improve MonoDevelop.
> >
> > I think we definitely need something like this, since the notebook's
> > pretty unusable with large numbers of tabs right now. I tend to use
> > shift-tab, or alt-shift-open. However, the ellipsised names can get
> > awkward especially when they're really small.
> >
> > The number of responses to this email show that people have many
> > different ideas of how it should be done :) IMO it would be useful to
> > see how other IDEs do it but also web browsers, since people are
> > familiar with how tabs work in web browsers.
> >
> > I agree that the icons looks like a low-hanging fruit for elimination,
> > though they can be useful visual indicators, particularly the welcome
> > page, and also in ASP.NET projects.
> >
> > A couple of other ideas I'd throw into the mix are:
> > a) Use a smaller font size, maybe the custom pad font that's already
> defined.
> > b) Instead of having arrows at either end for scrolling, have a
> > dropdown list like Firefox or VS.
> > c) Only display the close button when hovering over a tab, and paint
> > it on top of the text, so as not to jitter the layout.
> >
> > I also really like the way that VS does it, which is to remove tabs
> > from the right when the bar overflows. The documents are then
> > accessible from the (b) dropdown list, and selecting then adds them
> > back on the left, so that the most recently used documents are always
> > visible. No shrinkage necessary.
> >
> > The thing I'd really like to avoid is additional settings. I'm sure we
> > can find a mixture of ideas that works for most people.
> >
> > --
> > Michael Hutchinson
> > http://mjhutchinson.com
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
>
>
>
> --
> From RFC 2631: In ASN.1, EXPLICIT tagging is implicit unless IMPLICIT
> is explicitly specified
>



-- 
Fourth Year Undergraduate Student, Indian Institute of Technology, Kharagpur
E-Mail/jabber/googletalk: anirudh -at- anirudhsanjeev -dot- org
Phone: +91-97335-04828
My PGP key: anirudhsanjeev.org/pubkey.txt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20090417/3ad13b2e/attachment-0001.html 


More information about the Monodevelop-list mailing list