Page 52 of 299 FirstFirst ... 242505152535462102152 ... LastLast
Results 511 to 520 of 2990

Thread: Mac-style Menu Bar for GTK and Java/Swing applications!

  1. #511
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by Rashid584 View Post
    Lets say you have an app open, and want to open the "file" menu, you move your mouse upwards and left, and you click your left mouse button. (do this very quickly, only move up and left, don't move back down). What happens?

    For me, my mouse pointer goes to the very top of the screen, I click, but nothing happens. No menus appear.

    This is because there's a dead pixel above all the menu entries so clicking there will do nothing. I have to move my mouse down a couple pixels then click to open the menu. This is very annoying.

    I don't know Gtk programming (or any programming at all for that matter ) so I dunno if I could find the necessary value/line in the source code...

    ...I was wondering if you could, seeing as you seem familiar with the source

    -Rashid
    Perhaps, but I still have no idea what you're talking about. Maybe you could give me a picture of where your mouse is?

  2. #512
    Join Date
    Jun 2006
    Location
    London
    Beans
    215
    Distro
    Kubuntu 6.10 Edgy

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by boneyjellyfish View Post
    Perhaps, but I still have no idea what you're talking about. Maybe you could give me a picture of where your mouse is?
    Haha...are my explanations really that bad? OK, here come the screenshots...

    Understand now?

    -Rashid
    Attached Images Attached Images

  3. #513
    Join Date
    Dec 2006
    Beans
    18

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Hello Everyone!
    I've just created a libgtk2.0 patched for ubuntu feisty...
    you can download them from here, but you need to register to view the links, because files are not in my own server, and I have to limit the bandwidth. sorry
    If you also click on my banner, I am very happy, and sorry for my bad english....

  4. #514
    Join Date
    Feb 2007
    Location
    Athens ,Greece
    Beans
    158
    Distro
    Ubuntu 7.04 Feisty Fawn

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by boneyjellyfish View Post
    Aaaand I've gotten rid of the underlines in the menus. I'm not entirely sure why I'm going further and further with trying to make this computer look like a mac, but nevertheless, if anyone would like to get rid of the underlines in the menus, to make it more like a mac, I can provide the code and where to put it.
    That's nice, i've gotten rid of the arrow under the main menu applet icon :
    Code:
    sudo apt-get build-dep gnome-panel
    apt-get source gnome-panel
    cd gnome-panel-2.18.1
    gedit gnome-panel/panel-menu-button.c
    search for a line with the word arrow and comment it (put // in front of the line or put the line between /* and */). Save it and close gedit.

    If you don't want your new packages to show on the update list
    Code:
    gedit debian/changelog
    and change the first line from this
    Code:
    gnome-panel (1:2.18.1-0ubuntu3.1) feisty-proposed; urgency=low
    to this
    Code:
    gnome-panel (1:2.18.1-0ubuntu3.2) feisty-proposed; urgency=low
    Now type
    Code:
    dpkg-buildpackage -rfakeroot
    Your new debs are ready to install, just do
    Code:
    cd ..
    sudo dpkg -i *.deb
    Logout and login or killall gnome-panel .

    I'd also like to get rid of the underlines so please provide us with the code.
    Last edited by SkiesOfAzel; May 2nd, 2007 at 08:04 PM.

  5. #515
    Join Date
    May 2007
    Location
    MI
    Beans
    168
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    I am working on making my copy of Ubuntu look like OS-X. I am too the point where I need to install the Mac MenuBar and got the patch working, but how do I install?

  6. #516
    Join Date
    Aug 2006
    Beans
    3

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    ok, a step by step,. clear n00b install guide is needed!!!!

    When ever I try to run ./configure in the directory, it just says does not exsist (or something to that effect) how the hell do u install this!

  7. #517
    Join Date
    Sep 2006
    Location
    Ohio
    Beans
    53
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    yes, a simple tutorial is needed!
    my system?
    Compaq Presario 5WV280
    900MHz AMD Athalon, 256 Mb RAM, 8Mb nVidia TNT graphics card
    legacy, aint it?

  8. #518
    Join Date
    Apr 2006
    Beans
    Hidden!

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by SkiesOfAzel View Post
    I'd also like to get rid of the underlines so please provide us with the code.
    First, thank you for the instructions on getting rid of that pesky arrow, although for some reason the dpkg-buildpackage command produced a ton of errors for me, so I just compiled it manually.

    Anyway, since you asked for it, here are the instructions.

    First, make sure you have the patched gtk+ 2.10.11 from your post here: http://ubuntuforums.org/showpost.php...&postcount=429

    Go into gtk+-2.10.11/gtk and open gtklabel.c.

    Search for this function: gtk_label_set_uline_text_internal. It should be around line 2500 or so. This code should begin at the very first line of that function:

    Code:
    	gchar new1[256];
    
    	int iii, jjj;
    
    	jjj = 0;
    
    	// Cycle through the length of the original string
    
    	for(iii = 0; iii < strlen(str); iii++) 
    	{
    
    	   // check if the current char is an underscore
    
    	   if(str[iii] == '_') 
    	{
    
    	      // it is - is it a double underscore?
    
    	      if((str[iii+1] == '_') || (str[iii-1] == '_')) {
    
    	         // yes it is, so copy it like normal.
    
    	         new1[jjj] = str[iii];
    
    	      }
    
    	      // no it isn't, so don't copy this char. iterate to the 
    
    	      // next char in the original string but don't iterate
    
    	      // to the next char in the new string
    
    	   } 
    
    	   else {
    
    	      new1[jjj] = str[iii];
    
    	      jjj++;
    
    	   }
    
    	}
    
    	// null terminate the new string
    
    	new1[jjj] = 0;
    	str = new1;
    To compile gtk+, go back into the gtk+-2.10.11 directory and type this:

    Code:
    ./configure --prefix=/usr/
    make
    sudo make install
    Reboot your computer or press Ctrl-Alt-Backspace and you've gotten rid of your underlines.

    Quote Originally Posted by Rashid584
    Understand now?
    Nope! No matter what I try, I can't seem to reproduce anything like what you're describing. What's the height of your panel, if I may ask?
    Last edited by boneyjellyfish; May 3rd, 2007 at 03:02 AM.

  9. #519
    Join Date
    Jun 2006
    Location
    London
    Beans
    215
    Distro
    Kubuntu 6.10 Edgy

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by boneyjellyfish
    Nope! No matter what I try, I can't seem to reproduce anything like what you're describing. What's the height of your panel, if I may ask?
    So this is a problem only I'm getting? :S My panel is 24 pixels, the Ubuntu default.

    EDIT: Haha...thanks for the idea. I changed it to 23 pixels and it works fine now Except for the furtherst left menu (File) there seems to be a dead pixel on the very left of the panel...try moving your mouse up into the very top left corner of your screen, do you get the same behavior as me?

    -Rashid
    Last edited by Rashid584; May 3rd, 2007 at 07:45 AM.

  10. #520
    Join Date
    Apr 2007
    Location
    BA
    Beans
    Hidden!
    Distro
    Ubuntu 6.06 Dapper

    Re: Mac-style Menu Bar for GTK and Java/Swing applications!

    Quote Originally Posted by boneyjellyfish View Post
    First, thank you for the instructions on getting rid of that pesky arrow, although for some reason the dpkg-buildpackage command produced a ton of errors for me, so I just compiled it manually.

    Anyway, since you asked for it, here are the instructions.

    First, make sure you have the patched gtk+ 2.10.11 from your post here: http://ubuntuforums.org/showpost.php...&postcount=429

    Go into gtk+-2.10.11/gtk and open gtklabel.c.

    Search for this function: gtk_label_set_uline_text_internal. It should be around line 2500 or so. This code should begin at the very first line of that function:

    Code:
    
    
    To compile gtk+, go back into the gtk+-2.10.11 directory and type this:

    Code:
    ./configure --prefix=/usr/
    make
    sudo make install
    Reboot your computer or press Ctrl-Alt-Backspace and you've gotten rid of your underlines.
    I found an easier way, by changing the pattern of the label:

    In that same function, look for the line

    Code:
                  *pattern_dest++ = '_';
    and change it to

    Code:
                  *pattern_dest++ = ' '; // Annoying underline removed

Page 52 of 299 FirstFirst ... 242505152535462102152 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

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