xfce4-mixer : free space in the panel, change right-click behaviour ?

kapouer <[email protected]> Fri, 8 Feb 2008 03:52:35 -0800 (PST)
Newsgroups gmane.comp.desktop.xfce.goodies.devel
Message-ID <[email protected]>
--===============1854691425==
Content-Type: multipart/alternative; 
	boundary="----=_Part_1618_15241700.1202471555515"

------=_Part_1618_15241700.1202471555515
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,
i'm using this plugin and feel that it takes too much space in the panel
(the gnome equivalent
was neat, but i'm trying to get rid of those applets).


so to get closer i just suppressed the volume icon (mixer properties should
be
accessed by context-menu, right-click on the tiny slider), and disabled the
middle and right
click behaviour (to get access to the context menu).


The only thing one would object is that there's nothing telling this slider
is to change sound...
But that way, it frees a lot of space in the panel.


The modifs i did are simply comment gtk_widget_show (mixer->box); in
plugin.c and return FALSE for
middle and right clicks in xfce-mixer-slider-tiny.c :


if (b->button == 1) {
	sy = widget->allocation.height;
	if (sy != 0) {
		y = (sy + 2 - y) * 100 / sy;
		if (y <= 0) y = 0;
	} else y = 0;
} else {
	return FALSE;
}


And here's what it looks like :

http://www.nabble.com/file/p15181860/Screenshot-1.png 
-- 
View this message in context: http://www.nabble.com/xfce4-mixer-%3A-free-space-in-the-panel%2C-change-right-click-behaviour---tp15181860p15181860.html
Sent from the Xfce - Dev - Goodies mailing list archive at Nabble.com.

------=_Part_1618_15241700.1202471555515
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit


Hi,
i'm using this plugin and feel that it takes too much space in the panel (the gnome equivalent
was neat, but i'm trying to get rid of those applets).<br />
<br />
so to get closer i just suppressed the volume icon (mixer properties should be
accessed by context-menu, right-click on the tiny slider), and disabled the middle and right
click behaviour (to get access to the context menu).<br />
<br />
The only thing one would object is that there's nothing telling this slider is to change sound...
But that way, it frees a lot of space in the panel.<br />
<br />
The modifs i did are simply comment gtk_widget_show (mixer->box); in plugin.c and return FALSE for
middle and right clicks in xfce-mixer-slider-tiny.c :<br />
<pre>
if (b->button == 1) {
	sy = widget->allocation.height;
	if (sy != 0) {
		y = (sy + 2 - y) * 100 / sy;
		if (y <= 0) y = 0;
	} else y = 0;
} else {
	return FALSE;
}
</pre>
<br />
And here's what it looks like :<br />
<img src="http://www.nabble.com/file/p15181860/Screenshot-1.png" border="0" />
<br><hr align="left" width="300">
View this message in context: <a href="http://www.nabble.com/xfce4-mixer-%3A-free-space-in-the-panel%2C-change-right-click-behaviour---tp15181860p15181860.html">xfce4-mixer : free space in the panel, change right-click behaviour ?</a><br>
Sent from the <a href="http://www.nabble.com/Xfce---Dev---Goodies-f838.html">Xfce - Dev - Goodies mailing list archive</a> at Nabble.com.<br>

------=_Part_1618_15241700.1202471555515--


--===============1854691425==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
xfce-goodies-dev mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/xfce-goodies-dev

--===============1854691425==--