Page 55 of 299 FirstFirst ... 545535455565765105155 ... LastLast
Results 541 to 550 of 2990

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

  1. #541
    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!! i got it to work. the .deb's helped so much!! all i did was install them and install the applet and it worked.

    my only issues are with Firefox (whick i am gonn slowly not use anymore) and nautilus doesnt work. it keeps the menu bar. the macmenu does show filrebrowser, but it doesnt show the File, Edit, etc stuff. any tips?
    my system?
    Compaq Presario 5WV280
    900MHz AMD Athalon, 256 Mb RAM, 8Mb nVidia TNT graphics card
    legacy, aint it?

  2. #542
    Join Date
    Apr 2006
    Beans
    Hidden!

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

    Quote Originally Posted by echelon89 View Post
    how get macmenu applet work with firefox?
    and how do I fix the background problem?
    Thanks...
    As someone already said, Firefox is not supported because it does not use gtk+. Now, as for your problem. First, since you're using a background image for your panel that has rounded corners, you're going to have to cut out a small rectangular section of that to use as the menu's background (make it like... a 5 pixel wide chunk of it). Save it as panel.png in the same folder as your theme's gtkrc file. Then, go into gtkrc and add these lines:

    Code:
    #################### MENUBAR ###################
    
    style "menubar"		
    {
      fg[NORMAL] = "#000000"
      text[NORMAL] = "#000000"
      fg[PRELIGHT] = "#404040"
      fg[ACTIVE] = "#404040"
      fg[INSENSITIVE] = "#DDE4FF"
      text[PRELIGHT] = "#DDE4FF"
    
    xthickness			= 0
    ythickness			= 0
    	engine "pixmap"
    	{
    		image
    		{
    			function	= BOX
    			state = NORMAL
    			file		= "panel.png"
    			border	= { 0, 0, 0, 0 }
    			stretch	= FALSE
        		}
    
    		image
    		{
    			function	= BOX
    			state = ACTIVE
    			file		= "panel.png"
    			border	= { 0, 0, 0, 0 }
    			stretch	= FALSE
        		}
    
    		image
    		{
    			function	= BOX
    			state = INSENSITIVE
    			file		= "panel.png
    			border	= { 0, 0, 0, 0 }
    			stretch	= FALSE
        		}
    		
    		image
    		{
    			function	= BOX
    			state = PRELIGHT
    			file		= "panel.png"
    			border	= { 2, 2, 2, 2 }
    			stretch	= FALSE
        		}
    
    
     
     	}
    Also, keep in mind that the menu won't show up correctly in any applications that are accessed with either sudo or gksudo, such as synaptic or any instance of sudo gedit or whatever you're using. To fix this, you'll have to copy your .themes folder to /root.

    Quote Originally Posted by SkiesOfAzel View Post
    Although i haven't coded anything for 2 years and i have no experience with gtk i will probably try to alter the macmenu applet a little. i might try to combine it with some code from the menu bar applet to give it a default menu. If i get to it and if i succeed , i will post it here but i warn you , don't hold your breath .
    You know, I saw a post of yours about this topic on some website (either compiz or awn, I can't remember), and I meant to bring this up. I, too, have been putting a lot of thought into making a menu for that little label, and I would love to work with you on this project. The main problem I'm facing is thinking of items to actually put into the menu--especially ones that I can actually program, which would exclude things like Hide Others and the Services submenu.

  3. #543
    Join Date
    Oct 2005
    Beans
    47

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

    I tried SkiesOfAzel's .debs, and now I have no pane at all. I just have a bar in the top left corner with the menu for GAIM. I also get a bunch of "I've detected a panel already open. Quitting" when I log in. I also have loads of dependencies missing:

    Code:
    The following packages have unmet dependencies.
      gnome-panel: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                   Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                   Depends: libcairo2 (>= 1.4.2) but 1.2.4-1ubuntu2 is installed
                   Depends: libdbus-1-3 (>= 0.94) but 0.93-0ubuntu3.1 is installed
                   Depends: libdbus-glib-1-2 (>= 0.73) but 0.71-1ubuntu1 is installed
                   Depends: libebook1.2-9 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libecal1.2-7 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libedataserver1.2-9 (>= 1.10.1) but it is not installable
                   Depends: libedataserverui1.2-8 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                   Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                   Depends: libgnome-keyring0 (>= 0.7.1) but 0.6.0-0ubuntu2 is installed
                   Depends: libgnomeui-0 (>= 2.17.1) but 2.16.1-0ubuntu2 is installed
                   Depends: libgnomevfs2-0 (>= 1:2.17.90) but 2.16.1-0ubuntu7 is installed
                   Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                   Depends: libxml2 (>= 2.6.27) but 2.6.26.dfsg-2ubuntu4 is installed
                   Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      gtk2-engines-pixbuf: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                           Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                           Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                           Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                           Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
      gtk2.0-examples: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                       Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                       Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                       Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                       Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                       Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                       Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                       Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libgtk2.0-0: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                   Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                   Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                   Depends: libcupsys2 (>= 1.2.7) but 1.2.4-2ubuntu3 is installed
                   Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                   Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                   Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                   Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                   Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libgtk2.0-bin: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                     Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                     Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                     Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                     Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                     Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                     Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                     Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libpanel-applet2-0: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                          Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                          Depends: libcairo2 (>= 1.4.2) but 1.2.4-1ubuntu2 is installed
                          Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                          Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                          Depends: libgnome-keyring0 (>= 0.7.1) but 0.6.0-0ubuntu2 is installed
                          Depends: libgnomeui-0 (>= 2.17.1) but 2.16.1-0ubuntu2 is installed
                          Depends: libgnomevfs2-0 (>= 1:2.17.90) but 2.16.1-0ubuntu7 is installed
                          Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                          Depends: libxml2 (>= 2.6.27) but 2.6.26.dfsg-2ubuntu4 is installed
                          Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
    E: Unmet dependencies. Try using -f.
    Any ideas?

  4. #544
    Join Date
    Dec 2006
    Beans
    18

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

    Quote Originally Posted by boneyjellyfish View Post
    As someone already said, Firefox is not supported because it does not use gtk+. Now, as for your problem. First, since you're using a background image for your panel that has rounded corners, you're going to have to cut out a small rectangular section of that to use as the menu's background (make it like... a 5 pixel wide chunk of it). Save it as panel.png in the same folder as your theme's gtkrc file. Then, go into gtkrc and add these lines:
    /Cut
    Thanks for the answer,I've tried it, but it doesn't work...

  5. #545
    Join Date
    Jun 2006
    Location
    Millau, France
    Beans
    1,492
    Distro
    Ubuntu 14.04 Trusty Tahr

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

    Quote Originally Posted by echelon89 View Post
    Thanks for the answer,I've tried it, but it doesn't work...
    did you restart your gnome-panel after modifications ? if not, try this in a terminal:
    Code:
    kill -SIGUSR1 `pidof gnome-panel`

  6. #546
    Join Date
    Apr 2007
    Beans
    18

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

    I have the following problem(please, read about the macmenu): click here

    I know this was already discussed here, but I didn't understand a word of what to do O.o

    edit: I just realized another well discussed issue: the background corner becomes square again when the deskbar(spotlight) magically slides to the right(because of a new tray icon appearing like GAIM for example). Is there a way of LOCKING or set its background transparent?

    here it is when the tray has just one icon(and the notification area doesn't push deskbar to the corner):


    ...and here it is after "sliding" to the right:



    --
    thanks
    Last edited by carlbastos; May 5th, 2007 at 04:06 PM.

  7. #547
    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 chedabob View Post
    I tried SkiesOfAzel's .debs, and now I have no pane at all. I just have a bar in the top left corner with the menu for GAIM. I also get a bunch of "I've detected a panel already open. Quitting" when I log in. I also have loads of dependencies missing:

    Code:
    The following packages have unmet dependencies.
      gnome-panel: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                   Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                   Depends: libcairo2 (>= 1.4.2) but 1.2.4-1ubuntu2 is installed
                   Depends: libdbus-1-3 (>= 0.94) but 0.93-0ubuntu3.1 is installed
                   Depends: libdbus-glib-1-2 (>= 0.73) but 0.71-1ubuntu1 is installed
                   Depends: libebook1.2-9 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libecal1.2-7 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libedataserver1.2-9 (>= 1.10.1) but it is not installable
                   Depends: libedataserverui1.2-8 (>= 1.10.1) but 1.8.1-0ubuntu5 is installed
                   Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                   Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                   Depends: libgnome-keyring0 (>= 0.7.1) but 0.6.0-0ubuntu2 is installed
                   Depends: libgnomeui-0 (>= 2.17.1) but 2.16.1-0ubuntu2 is installed
                   Depends: libgnomevfs2-0 (>= 1:2.17.90) but 2.16.1-0ubuntu7 is installed
                   Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                   Depends: libxml2 (>= 2.6.27) but 2.6.26.dfsg-2ubuntu4 is installed
                   Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      gtk2-engines-pixbuf: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                           Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                           Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                           Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                           Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
      gtk2.0-examples: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                       Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                       Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                       Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                       Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                       Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                       Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                       Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libgtk2.0-0: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                   Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                   Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                   Depends: libcupsys2 (>= 1.2.7) but 1.2.4-2ubuntu3 is installed
                   Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                   Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                   Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                   Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                   Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libgtk2.0-bin: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                     Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                     Depends: libcairo2 (>= 1.4.0) but 1.2.4-1ubuntu2 is installed
                     Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                     Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                     Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                     Depends: libpng12-0 (>= 1.2.13-4) but 1.2.8rel-5.1ubuntu0.1 is installed
                     Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
      libpanel-applet2-0: Depends: libatk1.0-0 (>= 1.13.1) but 1.12.3-0ubuntu1 is installed
                          Depends: libc6 (>= 2.5-0ubuntu1) but 2.4-1ubuntu12.3 is installed
                          Depends: libcairo2 (>= 1.4.2) but 1.2.4-1ubuntu2 is installed
                          Depends: libfontconfig1 (>= 2.4.0) but 2.3.2-7ubuntu2 is installed
                          Depends: libglib2.0-0 (>= 2.12.9) but 2.12.4-0ubuntu1 is installed
                          Depends: libgnome-keyring0 (>= 0.7.1) but 0.6.0-0ubuntu2 is installed
                          Depends: libgnomeui-0 (>= 2.17.1) but 2.16.1-0ubuntu2 is installed
                          Depends: libgnomevfs2-0 (>= 1:2.17.90) but 2.16.1-0ubuntu7 is installed
                          Depends: libpango1.0-0 (>= 1.16.2) but 1.14.5-0ubuntu1 is installed
                          Depends: libxml2 (>= 2.6.27) but 2.6.26.dfsg-2ubuntu4 is installed
                          Depends: libxrandr2 (>= 2:1.2.0) but 2:1.1.1-0ubuntu1 is installed
    E: Unmet dependencies. Try using -f.
    Any ideas?
    You are not on Feisty, are you? To reinstall your original packages, find the packages you installed on synaptic, go to the packages menu and select force version. On the popup window select the original package and press force version.

  8. #548
    Join Date
    Oct 2005
    Beans
    47

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

    Quote Originally Posted by SkiesOfAzel View Post
    You are not on Feisty, are you? To reinstall your original packages, find the packages you installed on synaptic, go to the packages menu and select force version. On the popup window select the original package and press force version.
    I tried the force version thing, but it starts trying to remove most of my packages.

  9. #549
    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!

    Which Ubuntu version are you using? If there where dependencies problems how did you install the debs? Did you force them?Anyway, to restore your old packages you can build them yourself if forcing version doesn't work.
    Code:
    mkdir packages
    cd packages
    mkdir gtk2
    cd gtk2
    apt-get sources libgtk2.0-0 
    sudo apt-get build-dep libgtk2.0-0
    sudo apt-get install fakeroot
    Now there should be a folder starting with gtk , cd to this folder and
    Code:
    dpkg-buildpackage -rfakeroot
    When it finishes just
    Code:
    cd ..
    sudo dpkg  -i --force-all *.deb
    To restore the panel:
    Code:
    cd ..
    mkdir gnome-panel
    apt-get sources gnome-panel
    sudo apt-get build-dep gnome-panel
    cd to the newly created folder starting with gnome-panel- and
    Code:
    dpkg-buildpackage -rfakeroot
    When it finishes just
    Code:
    cd ..
    sudo dpkg  -i --force-all *.deb

  10. #550
    Join Date
    Oct 2005
    Beans
    47

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

    Quote Originally Posted by SkiesOfAzel View Post
    Which Ubuntu version are you using? If there where dependencies problems how did you install the debs? Did you force them?Anyway, to restore your old packages you can build them yourself if forcing version doesn't work.
    Im using Edgy. I didn't force them, they installed fine to start with, but I got a bunch of errors during the install, something to do with it not configuring the panel because of the dependencies.

    When I try to get the build-deps for libgtk I get the following error

    Code:
    E: Build-dependencies for libgtk2.0-0 could not be satisfied.
    I might just reinstall Feisty and hopefully any problems i've had with it previously are sorted.

Page 55 of 299 FirstFirst ... 545535455565765105155 ... 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
  •