On Sun, Apr 19, 2009 at 05:36:58AM +0400, Nickolay V. Shmyrev wrote: > В Чтв, 16/04/2009 в 17:27 -0700, Sandman пишет: > > Hi, > > > > In the gnome-panel "Panel properties" dialog box, if the "Show hide > > buttons" and "Arrows on hide buttons" options are toggled ON > > (checked), i am unable to shrink the panel below 24 pixels. If the > > "Arrows on hide buttons" is unchecked everything works as its supposed > > to. > > > > Here is my current setup: > > > > Distro: Ubuntu 9.04 (beta) using gnome-panel v2.26.0 > > Screens: Dual screen with Nvidia GeForce 7600. Main screen has a > > resolution of 1280x1024 and this is the screen on which I have the > > lone panel at the top of the screen. > > Launchers & Applets (left to right): Main Menu (button, not the bar), > > Firefox, Gnome-Terminal, Window List, Desktop Switcher, System > > Monitor, Network Monitor, Volume Control, Date/Time applet, User > > Switcher. > > Font Sizes: 8px. > > > > I assume this has something to do with the arrow image at the ends of > > the panel. Maybe the size of that image cannot be shrunk below 24px? > > > > I tried looking at the code and found the in the function * > > panel_toplevel_check_resize () * the call to gtk_widget_size_request > > () returns a GtkRequsition struct with height=24px for all sizes below > > (and including) 24px. How does gtk_widget_size_request() determine > > this size?? > > > > This is not a hindrance but it does make the interface a little > > awkward. I would think that if the size of the panel cannot be reduced > > below 24px (when the "Arrows on hide button" option is selected), the > > option of entering a lower size should not exist. > > > > Can anyone tell me whether or not this behavior is intentional and > > why? > > Hi Sandman > > Yes, arrows explicitely set their size in panel code: > > case GTK_ARROW_UP: > gtk_widget_set_size_request (button, -1, arrow_size); > > When toplevel calls size_request it actually asks for size request for > all child widgets and returns some combination of them (maximum), that's > why minimal size request from arrow turns to be the minimum size of the > panel. > > The default value for arrow-size is 20, not 24, although things may > change. You can change this value either in source code: > > #define DEFAULT_ARROW_SIZE 20 > > or with gtkrc file by settting panel's arrow-size property. Google for > PanelToplevel::arrow-size to get the samples. > > I'm not sure this behavior needs to be fixed, but it is indeed discussed > many times on various forums. Probably this restrictions should be made > more flexible. >
Hi Nikolay, Thanks a lot for your reply. I found the #define in the code. I appreciate your help. Take care. _______________________________________________ gnome-love mailing list [email protected] http://mail.gnome.org/mailman/listinfo/gnome-love
