new package: obconf - a configuration utility for Openbox

This commit is contained in:
Leonid Pliushch 2018-10-18 01:21:56 +03:00 committed by Yaksh Bariya
parent 9ce9134f33
commit 4756554042
No known key found for this signature in database
GPG Key ID: F7486BA7D3D27581
3 changed files with 69 additions and 0 deletions

View File

@ -0,0 +1,18 @@
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=http://www.gnome.org
TERMUX_PKG_DESCRIPTION="Allows you to load glade interface files in a program at runtime"
TERMUX_PKG_VERSION=2.6.4
TERMUX_PKG_SRCURL=https://download.gnome.org/sources/libglade/2.6/libglade-${TERMUX_PKG_VERSION}.tar.bz2
TERMUX_PKG_SHA256=64361e7647839d36ed8336d992fd210d3e8139882269bed47dc4674980165dec
TERMUX_PKG_DEPENDS="atk, fontconfig, freetype, gdk-pixbuf, glib, gtk2, libcairo-x, libxml2, pango-x"
TERMUX_PKG_RM_AFTER_INSTALL="share/gtk-doc"
# For libglade-convert.
TERMUX_PKG_SUGGESTS="python2"
termux_step_post_make_install() {
sed \
-i "s|#!/usr/bin/python|#!${TERMUX_PREFIX}/bin/python2|g" \
"${TERMUX_PREFIX}/bin/libglade-convert"
}

View File

@ -0,0 +1,39 @@
--- libglade-2.0.1/glade/glade-gtk.c.nowarning 2003-08-29 14:50:10.000000000 -0400
+++ libglade-2.0.1/glade/glade-gtk.c 2003-08-29 14:58:41.000000000 -0400
@@ -639,9 +639,8 @@
if (!strcmp (childinfo->properties[j].name, "label")) {
label = childinfo->properties[j].value;
break;
- } else {
- g_warning ("Unknown CList child property: %s", childinfo->properties[j].name);
}
+ /* Ignore all other properties */
}
if (label) {
@@ -683,6 +682,7 @@
char *icon = NULL;
gboolean use_stock = FALSE, active = FALSE, new_group = FALSE;
gboolean use_underline = FALSE;
+ gboolean sensitive = TRUE;
GtkWidget *iconw = NULL;
int j;
@@ -708,6 +708,8 @@
group_name = value;
} else if (!strcmp (name, "new_group")) {
new_group = BOOL (value);
+ } else if (!strcmp (name, "sensitive")) {
+ sensitive = BOOL (value);
} else if (!strcmp (name, "visible")) {
/* ignore for now */
} else if (!strcmp (name, "tooltip")) {
@@ -785,6 +787,8 @@
gtk_label_set_use_underline (GTK_LABEL (toolbar_child->label),
TRUE);
}
+
+ gtk_widget_set_sensitive (child, sensitive);
glade_xml_set_common_params (xml, child, childinfo->child);
} else {

View File

@ -0,0 +1,12 @@
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"
TERMUX_PKG_HOMEPAGE=http://openbox.org/wiki/ObConf:About
TERMUX_PKG_DESCRIPTION="A configuration tool for the Openbox window manager"
TERMUX_PKG_VERSION=2.0.4
TERMUX_PKG_SRCURL=http://openbox.org/dist/obconf/obconf-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=71a3e5f4ee246a27421ba85044f09d449f8de22680944ece9c471cd46a9356b9
TERMUX_PKG_DEPENDS="atk, fontconfig, freetype, gdk-pixbuf, glib, gtk2, imlib2, libandroid-shmem, libcairo-x, libglade, libice, librsvg, libsm, libx11, libxft, libxml2, openbox, pango-x, startup-notification"
termux_step_pre_configure() {
export LIBS="-lgmodule-2.0 -landroid-shmem"
}