Make blueman-adapters XFCE Pluggable #25

Closed
GreenLunar opened this Issue Jan 12, 2014 · 13 comments

Comments

Projects
None yet
4 participants
Contributor

GreenLunar commented Jan 12, 2014

Original post: namili/blueman#1

In Bug 9674 – Ignore NoDisplay=true there is an example for adding a blueman-adapters.desktop entry to xfce4-settings-manager.

[Desktop Entry]
Name=Bluetooth Adapters
Comment=Set Bluetooth Adapter Properties
Exec=blueman-adapters
Icon=blueman-device
Terminal=false
Type=Application
Categories=X-XFCE;Settings;DesktopSettings;X-XFCE-SettingsDialog;X-XFCE-HardwareSettings;
StartupNotify=true
Encoding=UTF-8
NoDisplay=false
X-XfceSettingsName=Bluetooth
X-XfcePluggable=true

Unfortunately, X-XfcePluggable=true does not work for blueman-adapters dialog so it is opened in a separate window.

Owner

cschramm commented Jan 14, 2014

What does the X-XfcePluggable feature require?

Contributor

GreenLunar commented Jan 15, 2014

I do not know. There seem to be no entry about it at Xfce Wiki.
http://seeks.fr/search?q=site%3Axfce.org%20XfcePluggable
http://seeks.fr/search?q=X-XfcePluggable

I guess commit 95fdccc (written in C) would be of help.

Maybe relevant http://xfce.org/download/changelogs/4.10pre1

Re-add support for pluggable dialogs and enable them always.
Panel: Add support for pluggable dialogs.

We may try to ask the contributors for the following files:
xfce4-accessibility-settings.desktop.in
xfce-ui-settings.desktop.in
xfce-display-settings.desktop.in
xfce-keyboard-settings.desktop.in
xfce-mouse-settings.desktop.in

@ghost ghost referenced this issue Apr 22, 2014

Closed

Segfaults (Gentoo) #49

Contributor

GreenLunar commented Dec 13, 2014

@nschermer @Jannis @kelnos @stephanarts

What does the X-XfcePluggable feature require?

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...
Contributor

rworkman commented Dec 14, 2014

If it's possible to make a settings dialog pluggable using pygtk, I suspect it's far from trivial, but I've asked in #xfce-devel to see if anyone there knows for sure. In the meantime, the branch I just pushed (referenced above) adds the .desktop file without the pluggable setting, as I think it would be good to have either way.

Contributor

rworkman commented Dec 14, 2014

<+ochosi> rworkman: anyway, this is what you mostly have to do (create a gtkplug and "plug it in"): http://git.xfce.org/xfce/xfce4-power-manager/tree/settings/xfpm-settings.c#n2192
obviously, in the builder/glade file, the plug-child widget has to contain all that you want to be shown in the plug

This looks like it should be helpful, but I'm not competent enough, it seems: http://python.developpez.com/cours/pygtktutorial/php/pygtken/sec-PlugsAndSockets.php

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out how to make this pluggable - here's what ochosi in
      the xfce devel channel said:

  <+ochosi> rworkman: anyway, this is what you mostly have to do
  (create a gtkplug and "plug it in"):
  http://git.xfce.org/xfce/xfce4-power-manager/tree/settings/xfpm-settings.c#n2192
  obviously, in the builder/glade file, the plug-child widget has
  to contain all that you want to be shown in the plug

This looks like it should be helpful, but I'm not competent enough:
http://python.developpez.com/cours/pygtktutorial/php/pygtken/sec-PlugsAndSockets.php

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...
Contributor

GreenLunar commented Dec 14, 2014

@rworkman why do you think that this desktop file is to be optional?

You might also want to write a commit for a similar settings dialog of MATÉ desktop environment, I think it is called mate-control-center.

Contributor

rworkman commented Dec 14, 2014

I tend to make things like this optional, as it's quite likely that someone will be running e.g. MATE and won't care for the xfce file to even be installed. I know and you know that it doesn't matter either way, but some people get really bent out of shape over perceived "bloat" being on their systems.

Re a similar option for MATE, I'd rather someone who uses MATE and can actually test it do that (same re KDE if there's a comparable thing there).

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...
Contributor

GreenLunar commented Dec 14, 2014

Actually, to me, it does matter, indeed, when I get to have unnecessary files installed,. This desktop file goes into Settings category in standard (maybe, common) menu, so I do not think most users would consider this redundant, despite this dialog being, relatively, compact.

Contributor

rworkman commented Dec 14, 2014

I'm okay with it either way - if the consensus among the blueman project devs is that it should be installed no matter what, then that's cool. I do think that the thunar-sendto one should remain optional though.

Contributor

infirit commented Dec 14, 2014

blueman does not use pygtk anymore and uses pygobject. However things should be fairly similar but there are differences.

Contributor

rworkman commented Dec 14, 2014

Well, either way, xfce is currently gtk2, so that's another hurdle - I'd be surprised if a gtk3 plug can be embedded in a gtk2 socket.

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

TODO: Figure out if it's possible to make this pluggable
and if so, how to do that. Probably this involves including
something from libxfceui, but we'll see...

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

Making the dialogs pluggable into Xfce's settings manager is
probably not doable right now, given that Xfce is gtk2 and
blueman is gtk3.

rworkman added a commit to rworkman/blueman that referenced this issue Dec 14, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

Making the dialogs pluggable into Xfce's settings manager is
probably not doable right now, given that Xfce is gtk2 and
blueman is gtk3.

cschramm added a commit that referenced this issue Dec 19, 2014

Add blueman apapters config to Xfce settings dialog
This partially addresses Issue #25

Making the dialogs pluggable into Xfce's settings manager is
probably not doable right now, given that Xfce is gtk2 and
blueman is gtk3.

Closes #152
Contributor

GreenLunar commented Jan 22, 2015

Well, either way, xfce is currently gtk2, so that's another hurdle - I'd be surprised if a gtk3 plug can be embedded in a gtk2 socket.

A gtk3 plug can be embedded in a gtk2 socket. See images of xfdashboard (GTK+3).

gtk3-plugged-in-gtk2_
gtk3-plugged-in-gtk2

cschramm added a commit to cschramm/blueman that referenced this issue Oct 5, 2016

@cschramm cschramm added this to the 2.1 milestone Oct 5, 2016

@cschramm cschramm closed this in #598 Oct 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment