mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

gnome-mplayer resize issues with global menu or indicator app menu in use #501

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
i know why now. i really tested a lot and the reason is gnome-globalmenu, means 
the gnome-mplayer window did not contain the menubar, enable 
"globalmenu-plugin" module this issue happen.

hope there is at least  a workaround. because ubuntu will contain this function.

http://code.google.com/p/gnome2-globalmenu/ or 
https://launchpad.net/indicator-appmenu

ubuntu 11.04 already using indicator-appmenu.

Original issue reported on code.google.com by kdeko...@gmail.com on 12 Apr 2011 at 12:42

GoogleCodeExporter commented 8 years ago
Can you download the SVN version of gnome-mplayer and change the line in gui.c 
right around line 332

From

    if (!fullscreen) {
        //printf("menubar = %i\n",menubar->allocation.height);
        get_allocation(menubar, &alloc);
        total_height += alloc.height;
    }

to

    if (!fullscreen) {
        //printf("menubar = %i\n",menubar->allocation.height);
        get_allocation(menubar, &alloc);
        // total_height += alloc.height;
    }

And see if that fixes the issue.

Original comment by kdeko...@gmail.com on 12 Apr 2011 at 12:46

GoogleCodeExporter commented 8 years ago
yes, this will fix the problem.

Original comment by jason5...@gmail.com on 16 Apr 2011 at 11:50

GoogleCodeExporter commented 8 years ago
Is Ubuntu using global menu by default now? If so I may need to make a option 
to account for this, since my question on how to detect global menus got closed 
without an answer.

Original comment by kdeko...@gmail.com on 11 May 2011 at 7:49

GoogleCodeExporter commented 8 years ago
I put in a gconf/dconf key under apps, gnome-mplayer, preferences and it named 
'enable-global-menu' set this to true and gnome-mplayer should resize correctly 
on machines with gnome global menus enabled.

Original comment by kdeko...@gmail.com on 11 May 2011 at 8:07

GoogleCodeExporter commented 8 years ago
To check if the global menu is supported in Ubuntu, you can check if this 
environnement variable is set : UBUNTU_MENUPROXY="libappmenu.so"
To be more dynamic, you probably have to monitor D-Bus and see if a panel 
actually display it. It should be under com.canonical.AppMenu.Registar. For 
example, for gnome-panel, it could be 
/org/gnome/panel/applet/IndicatorAppletAppmenuFactory 

Original comment by julien.l...@gmail.com on 15 May 2011 at 7:10