You are not logged in.

#1 2011-05-12 13:44:14

b9anders
Member
Registered: 2007-11-07
Posts: 691

[query]network-manager-applet-gtk2

I use xfce with networkmanager. I have to use the latter since I use mobile broadband. the nm-applet was however the only app I use that used gtk3 and it stood out like an eyesore. So I went into abs and added --with-gtkver=2 to the PKGBUILD to compile it with gtk2 instead. Now I am wondering if it is possible to perhaps create a package stripped of all unnecessary dependencies to gnome for those of us who still live in gtk2, whether through xfce, openbox, etc. I am not

This is what the package build looks like with my minimal alteration of compiling it with gtk2:

pkgname=network-manager-applet-gtk2
pkgver=0.8.999
pkgrel=1
pkgdesc="frontend to NetWorkmanager with minimal GNOME dependencies and compiled for gtk2"
arch=('i686' 'x86_64')
license=('GPL')
url="http://www.gnome.org/projects/NetworkManager/"
depends=('networkmanager' 'libgnome-keyring' 'polkit-gnome' 'gtk2'
         'notification-daemon' 'libnotify' 'gnome-icon-theme'
         'mobile-broadband-provider-info' 'gconf')
makedepends=('intltool' 'gnome-bluetooth' 'gtk-doc')
optdepends=('gnome-bluetooth: for PAN/DUN support')
options=('!libtool')
install=network-manager-applet.install
source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.bz2)
sha256sums=('95249953fad924240fbe85ae7742405622c7edc3c6391dcb823346d5c37fd63b')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr --sysconfdir=/etc --with-gtkver=2  \
      --localstatedir=/var \
      --libexecdir=/usr/lib/networkmanager \
      --disable-static \
      --disable-maintainer-mode
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 DESTDIR="${pkgdir}" install

  install -m755 -d "${pkgdir}/usr/share/gconf/schemas"
  gconf-merge-schema "${pkgdir}/usr/share/gconf/schemas/${pkgname}.schemas" --domain nm-applet ${pkgdir}/etc/gconf/schemas/*.schemas
  rm -f ${pkgdir}/etc/gconf/schemas/*.schemas
}

I am wondering to what extent dependencies like polkit-gnome, gnome key-ring, gnome-bluetooth and gconf can be tampered with with the appropriate flags. Anyone who has the know-how and desire to chip in, please do so.

Offline

#2 2011-05-12 13:53:28

york824
Member
Registered: 2008-11-26
Posts: 77

Re: [query]network-manager-applet-gtk2

same here. nm-applet remains the only gtk3 application in my KDE4 system.

Offline

#3 2011-05-16 19:45:19

Nimbus
Member
From: Ivalice
Registered: 2011-03-30
Posts: 67

Re: [query]network-manager-applet-gtk2

Although I have no idea on how much extent those can be tampered with, I would love to see a GTK2 based NM-Applet back on my system, and I'm sure many others would to.

I'm kind of confused as to why they changed it to GTK3 anyway. It worked perfectly fine with GTK2, and it themed better. Additionally there is no reason It couldn't have been given a GTK2 fallback mode if you were running it outside of gnome.


Genius may have its limitations, but stupidity is not thus handicapped.
        -- Elbert Hubbard
OpenBox3 + KDE4.6 + Xfce4.8 User

Offline

#4 2011-05-17 11:20:11

b9anders
Member
Registered: 2007-11-07
Posts: 691

Re: [query]network-manager-applet-gtk2

Nimbus - you can use that PKGBUILD if you are just interested in a gtk2 applet.

I started this thread in the hope that maybe a pkgbuild could be developed for an nm-applet even more tailored to non-gnome systems.

I am no expert, but I don't think it can fallback to gtk2. You have to compile it with either or.

I am going through the configure file, but my problem is I am not sure what a lot of the flags listed actually mean.

Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor
  PKG_CONFIG  path to pkg-config utility
  PKG_CONFIG_PATH
              directories to add to pkg-config's search path
  PKG_CONFIG_LIBDIR
              path overriding pkg-config's built-in search path
  GOBJECT_CFLAGS
              C compiler flags for GOBJECT, overriding pkg-config
  GOBJECT_LIBS
              linker flags for GOBJECT, overriding pkg-config
  NMA_CFLAGS  C compiler flags for NMA, overriding pkg-config
  NMA_LIBS    linker flags for NMA, overriding pkg-config
  GCONF_CFLAGS
              C compiler flags for GCONF, overriding pkg-config
  GCONF_LIBS  linker flags for GCONF, overriding pkg-config
  GNOME_KEYRING_CFLAGS
              C compiler flags for GNOME_KEYRING, overriding pkg-config
  GNOME_KEYRING_LIBS
              linker flags for GNOME_KEYRING, overriding pkg-config
  LIBNOTIFY_07_CFLAGS
              C compiler flags for LIBNOTIFY_07, overriding pkg-config
  LIBNOTIFY_07_LIBS
              linker flags for LIBNOTIFY_07, overriding pkg-config
  NOTIFY_CFLAGS
              C compiler flags for NOTIFY, overriding pkg-config
  NOTIFY_LIBS linker flags for NOTIFY, overriding pkg-config
  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
  GTK_LIBS    linker flags for GTK, overriding pkg-config
  DBUS_126_CFLAGS
              C compiler flags for DBUS_126, overriding pkg-config
  DBUS_126_LIBS
              linker flags for DBUS_126, overriding pkg-config
  POLKIT_CFLAGS
              C compiler flags for POLKIT, overriding pkg-config
  POLKIT_LIBS linker flags for POLKIT, overriding pkg-config
  GNOME_BLUETOOTH_CFLAGS
              C compiler flags for GNOME_BLUETOOTH, overriding pkg-config
  GNOME_BLUETOOTH_LIBS
              linker flags for GNOME_BLUETOOTH, overriding pkg-config

Offline

#5 2011-06-18 18:12:05

Diaz
Member
From: Portugal
Registered: 2008-04-16
Posts: 366

Re: [query]network-manager-applet-gtk2

So, i was looking into something like this, actually for me this is the only thing that depends on gconf on my xfce system and i have to say that i hate it.

Any progress in finding a way to build a minimal or more striped package of this?
I'm looking into the sources to see if i find what exactly depends on this stuff and if there are any cool switch to put in the .configure, but this is hard for the lack of usefull documentation -.-'

tks

Offline

Board footer

Powered by FluxBB