After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 130657 - Menu stripe patch
Menu stripe patch
Status: RESOLVED OBSOLETE
Product: gnome-panel
Classification: Other
Component: panel
git master
Other All
: High enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 76873 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-01-06 05:28 UTC by Glynn Foster
Modified: 2020-11-07 12:16 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
menu stripe patch (19.47 KB, patch)
2004-01-06 05:28 UTC, Glynn Foster
none Details | Review
Updated patch with gconf key (4.42 KB, patch)
2004-07-17 14:25 UTC, David Sedeño Fernández
none Details | Review
patch with new files in (20.32 KB, patch)
2004-08-20 15:38 UTC, David Sedeño Fernández
none Details | Review
menu stripe patch for gnome-panel-2.8.1 (22.70 KB, patch)
2004-11-14 18:20 UTC, grant williamson
none Details | Review
gnome-panel-2.10.0-2-MenuStripe.patch (20.43 KB, patch)
2005-03-18 07:09 UTC, Link Dupont
none Details | Review
Updated patch (18.66 KB, patch)
2005-05-23 09:19 UTC, Glynn Foster
none Details | Review
Test patch (23.63 KB, patch)
2006-09-09 06:55 UTC, grant williamson
none Details | Review
Updated patch, fixes places meny (21.58 KB, patch)
2006-09-10 14:01 UTC, grant williamson
none Details | Review

Description Glynn Foster 2004-01-06 05:28:04 UTC
This is Mark's rewritten XD2 menu stripe patch for JDS. It's good to go in,
if it makes sense usability people.
Comment 1 Glynn Foster 2004-01-06 05:28:34 UTC
Created attachment 22999 [details] [review]
menu stripe patch
Comment 2 alexander.winston 2004-01-06 05:30:22 UTC
Upgrading the priority level to high. (I am actually Gman's indentured
servant, not slave.)
Comment 3 Vincent Untz 2004-01-06 14:32:49 UTC
*** Bug 76873 has been marked as a duplicate of this bug. ***
Comment 4 Vincent Untz 2004-01-06 14:33:46 UTC
The question is: do we want to have this?
usability people: any advice on this?
Comment 5 Mark McLoughlin 2004-01-06 14:41:54 UTC
(Trying to be unbiased here :-)

Its a strange situation - in general we're trying to get away from
"branding" GNOME, so this patch isn't something we want on in GNOME by
default ... but because at least two GNOME distributors use the
feature and seeing as its often requested, I'm inclined to think we
should include it.

Not fully convinced, though - definetly want other people's opinion.
Comment 6 Vincent Untz 2004-01-06 15:00:34 UTC
(note that if we'll include it, I'm sure we'll have lots of people
asking for a gconf key to disable it)
Comment 7 Mark McLoughlin 2004-01-06 15:43:14 UTC
Yeah, I'm saying if we were to include it, it would be optional and
off by default

(yes, that does sound stupid)
Comment 8 Calum Benson 2004-01-27 17:10:40 UTC
Can't say I really have much of an opinion on it either way, except
that vertical text in a GUI generally sucks so I doubt if anybody ever
reads it anyway :)
Comment 9 Elijah Newren 2004-02-13 19:54:33 UTC
I don't understand why the menu stripe should be ruled out on branding
reasons.  Yes, branding went way overboard in Gnome 1.x; but removing
all branding would mean doing away with (or changing) the splash
screen and removing the "About GNOME" option from the panel.  I don't
see how this is any different than those two things.  If it is
different, could someone explain it to me?

If however, the menu stripe is ruled out because vertical text looks
bad, or it makes the menu harder to use for general users or something
like that, then I understand--but I hope that isn't the case because I
personally really like the stripe.  :-)
Comment 10 David Sedeño Fernández 2004-07-17 14:25:49 UTC
Created attachment 29607 [details] [review]
Updated patch with gconf key

Updated patch to current cvs and with a boolean gconf key default to false.
Comment 11 Vincent Untz 2004-08-20 15:06:46 UTC
David: could you attach a patch with "cvs diff -upN" so we can see the new files?
Thanks
Comment 12 David Sedeño Fernández 2004-08-20 15:38:58 UTC
Created attachment 30786 [details] [review]
patch with new files in

There was no changes in the new files from the original patch, IIRC. This is a
single patch with the two new files in.
Comment 13 Vincent Untz 2004-10-16 13:54:17 UTC
The gconf key should probably not be global, but per menu.
Comment 14 Vidar Braut Haarr 2004-10-16 14:20:31 UTC
+	retval = panel_menu_new (FALSE);

Could that be made into a compiletime option, or isn't that needed ?

+	if (!menu) {
 		menu = create_panel_root_menu (panel_widget);
+		panel_menu_set_stripe_enabled (PANEL_MENU (menu), TRUE);
+	}

Why does it send in TRUE here without checking ? (I don't know the code around
here, so excuse me if it already does)

+ * panel-menu.c: A GtkMenu with an ugly stripe down the side

So you actually think it's ugly yourself ? ;)

+#define PANEL_MENU_DEFAULT_IMAGE           "gnome-panel-menu-stripe"
+#define PANEL_MENU_DEFAULT_GRADIENT_TOP    { 0, 0xffff, 0xffff, 0xffff }
+#define PANEL_MENU_DEFAULT_GRADIENT_BOTTOM { 0, 0x0000, 0x0000, 0xffff }

What about wrapping those in #ifndef, so they can be overrided ? Or are these
just defaults ?

+		goto out_no_name;
+		goto out_no_path;

Generally, I don't like goto's, but I don't know the convention in gnome-panel.

I'm also very impressed by the total lack of comments in the patch.

In any case, I'm just voicing my .2 NOK, feel free to ignore ;)
Comment 15 grant williamson 2004-11-14 18:20:13 UTC
Created attachment 33773 [details] [review]
menu stripe patch for gnome-panel-2.8.1

Updated patch for gnome-panel-2.8.1
Comment 16 Kjartan Maraas 2004-11-15 09:25:33 UTC
This can't go in on 2.8.x since it's feature frozen and this patch adds features
and strings etc. Could this be rebased against the new menu implementation or is
it obsolete now?
Comment 17 Mark McLoughlin 2004-12-15 09:15:01 UTC
Comment on attachment 33773 [details] [review]
menu stripe patch for gnome-panel-2.8.1

A few things needs to happen here:

  1) Decide whether we want this or not - I'm leaning towards no now. Adding
something we don't actually want to use seems crack

  2) The patch needs to be updated for gnome-panel HEAD

  3) Need to investigate if we could do this in a less hacky way. Does the
table-based GtkMenu stuff help us at all?
Comment 18 Vidar Braut Haarr 2004-12-15 09:20:10 UTC
1) I agree that GNOME doesn't need this, but I can see how lots of consumers
would like to be able to brand their distros with this patch.
Having it in gnome-panel CVS would ease their work, as they wouldn't have to
apply it themselves for every release.
Comment 19 Luis Villa 2005-01-02 17:20:19 UTC
Mark: as you said when you worked for someone else ;) there are quite a few
folks who want to brand gnome this way- it's not just sun and novell, but also
other deploying groups like linex (as I understand it.) Certainly, 'how do we
brand GNOME' has been a regular request from a variety of groups. So I'd lean
towards 'please include' as long as it won't become a gigantic support headache,
which is clearly your call.
Comment 20 Vincent Untz 2005-01-02 18:02:04 UTC
> Does the table-based GtkMenu stuff help us at all?

Where can I find some example code for this?
Comment 21 Seth Nickell 2005-01-03 00:12:15 UTC
I am sympathetic to the trouble this causes developers. At the same time, the
"menu stripe" seems wrong. Not terribly egregiously wrong mind you, just a
little off. Should we make it easier for distributors to perpetrate the mild
evil they're going to do anyway? Dunno.
Comment 22 Link Dupont 2005-03-18 07:09:02 UTC
Created attachment 38880 [details] [review]
gnome-panel-2.10.0-2-MenuStripe.patch

Quick 'n' dirty update of the patch against gnome-panel-2.10.0. It compiles,
but doesn't work. :-]
Comment 23 Michael Monreal 2005-04-11 10:08:46 UTC
Someone should really have a look at link's patch, fix it and get it into CVS
HEAD... if only to finally close this bug!

While I don't see myself using this, I can't make out the problem if this was
ifdef'd with a nice '--enable-menustrip' configure oftion which defaults to no.
Comment 24 Glynn Foster 2005-05-23 09:19:07 UTC
Created attachment 46787 [details] [review]
Updated patch 

This patch works and builds against 2.10.1
Comment 25 Glynn Foster 2005-05-23 09:21:03 UTC
Ooops, hadn't realized that Link's patch had added some gconf code - should be
trivial to add to the above though.
Comment 26 Vincent Untz 2005-08-18 09:55:50 UTC
Glynn: do you (or someone else at Sun) have sometime to look at Mark's idea
(investigate if table-based GtkMenu would work here)?
Comment 27 Glynn Foster 2005-08-24 02:57:06 UTC
I'm pretty swamped in OpenSolaris land, but I've passed this onto the team to
see if there's anyone keen on picking this up.
Comment 28 Christian Neumair 2005-10-29 09:25:35 UTC
Ping.
Comment 29 grant williamson 2006-09-09 06:37:36 UTC
Anyone have a working patch for 2.16.0?
Comment 30 grant williamson 2006-09-09 06:55:50 UTC
Created attachment 72437 [details] [review]
Test patch

This patch works somewhat,it also applies to System menu (not desirable) and make needs to be run from gnome-panel src directory.
Comment 31 Glynn Foster 2006-09-10 09:58:10 UTC
FWIW, in the latest versions of JDS, we've decided to drop this patch - though that information isn't a reason to close this bug, it felt right to inform others ;)
Comment 32 grant williamson 2006-09-10 14:01:55 UTC
Created attachment 72501 [details] [review]
Updated patch, fixes places meny

Updated patch, now stripe looks correct on Application/Places/System menu.
Comment 33 grant williamson 2006-09-10 14:03:20 UTC
(In reply to comment #31)
> FWIW, in the latest versions of JDS, we've decided to drop this patch - though
> that information isn't a reason to close this bug, it felt right to inform
> others ;)
> 

Well I think it's still important for Branding. It still would be a nice branding feature, if somebody would add it to the tree.
Comment 34 André Klapper 2020-11-07 12:16:22 UTC
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all
old feature requests in Bugzilla which have not seen updates for many years.

If you still use gnome-panel and if you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/

Thank you for reporting this issue and we are sorry it could not be implemented.