Package init
This commit is contained in:
commit
e5bbc394aa
39
libglade-2.0.1-nowarning.patch
Normal file
39
libglade-2.0.1-nowarning.patch
Normal 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 {
|
||||||
BIN
libglade-2.6.4.tar.bz2
Normal file
BIN
libglade-2.6.4.tar.bz2
Normal file
Binary file not shown.
39
libglade-secondary.patch
Normal file
39
libglade-secondary.patch
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
diff -up libglade-2.6.3/glade/glade-gtk.c.secondary libglade-2.6.3/glade/glade-gtk.c
|
||||||
|
--- libglade-2.6.3/glade/glade-gtk.c.secondary 2009-02-20 00:21:52.433916022 -0500
|
||||||
|
+++ libglade-2.6.3/glade/glade-gtk.c 2009-02-20 00:22:02.065954023 -0500
|
||||||
|
@@ -544,7 +544,7 @@ gtk_dialog_build_children(GladeXML *self
|
||||||
|
|
||||||
|
{
|
||||||
|
GtkDialog *dialog = GTK_DIALOG (w);
|
||||||
|
- GList *children, *list;
|
||||||
|
+ GList *children, *list, *secondary;
|
||||||
|
|
||||||
|
glade_standard_build_children (self, w, info);
|
||||||
|
|
||||||
|
@@ -553,10 +553,13 @@ gtk_dialog_build_children(GladeXML *self
|
||||||
|
|
||||||
|
/* repack children of action_area */
|
||||||
|
children = gtk_container_get_children(GTK_CONTAINER(dialog->action_area));
|
||||||
|
+ secondary = NULL;
|
||||||
|
for (list = children; list; list = list->next) {
|
||||||
|
GtkWidget *child = GTK_WIDGET(list->data);
|
||||||
|
|
||||||
|
g_object_ref(child);
|
||||||
|
+ if (gtk_button_box_get_child_secondary (GTK_BUTTON_BOX (dialog->action_area), child))
|
||||||
|
+ secondary = g_list_prepend (secondary, child);
|
||||||
|
gtk_container_remove (GTK_CONTAINER (dialog->action_area), child);
|
||||||
|
}
|
||||||
|
for (list = children; list; list = list->next) {
|
||||||
|
@@ -569,7 +572,12 @@ gtk_dialog_build_children(GladeXML *self
|
||||||
|
g_object_unref(child);
|
||||||
|
|
||||||
|
}
|
||||||
|
+ for (list = secondary; list; list = list->next) {
|
||||||
|
+ GtkWidget *child = GTK_WIDGET(list->data);
|
||||||
|
+ gtk_button_box_set_child_secondary (GTK_BUTTON_BOX (dialog->action_area), child, TRUE);
|
||||||
|
+ }
|
||||||
|
g_list_free (children);
|
||||||
|
+ g_list_free (secondary);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
72
libglade2.spec
Normal file
72
libglade2.spec
Normal file
@ -0,0 +1,72 @@
|
|||||||
|
Name: libglade2
|
||||||
|
Version: 2.6.4
|
||||||
|
Release: 20
|
||||||
|
Summary: Glade Library Compatible with the GNOME 2.x Desktop Platform
|
||||||
|
License: LGPLv2+
|
||||||
|
URL: http://www.gnome.org
|
||||||
|
Source: http://download.gnome.org/sources/libglade/2.6/libglade-%{version}.tar.bz2
|
||||||
|
|
||||||
|
Requires: xml-common
|
||||||
|
|
||||||
|
BuildRequires: libxml2-devel gtk2-devel fontconfig pango-devel libtool gettext-devel
|
||||||
|
Patch1: libglade-2.0.1-nowarning.patch
|
||||||
|
Patch2: libglade-secondary.patch
|
||||||
|
|
||||||
|
%description
|
||||||
|
This library allows you to load Glade interface files in a program at
|
||||||
|
runtime. It does not require that you use Glade, but Glade is the
|
||||||
|
easiest way to create the interface files. For an idea of how to use
|
||||||
|
the library, see the documentation, especially %{_docdir}/libglade/test-libgladee.c
|
||||||
|
and the glade-xml.h include, which is in the libglade package.
|
||||||
|
|
||||||
|
%package devel
|
||||||
|
Summary: Header files and development Files for %{name}
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel
|
||||||
|
This package contains header files and development Files for for %{name}.
|
||||||
|
|
||||||
|
%package_help
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n libglade-%{version} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
%configure --disable-gtk-doc
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}/libglade/2.0
|
||||||
|
%make_install
|
||||||
|
%delete_la
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS COPYING
|
||||||
|
%{_datadir}/xml/libglade/*
|
||||||
|
%dir %{_libdir}/libglade/2.0
|
||||||
|
%{_libdir}/libglade-2.0.so.*
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc test-libglade.c
|
||||||
|
%{_includedir}/libglade-2.0/glade/*.h
|
||||||
|
%{_bindir}/libglade-convert
|
||||||
|
%{_libdir}/libglade-2.0.so
|
||||||
|
%{_libdir}/pkgconfig/libglade-2.0.pc
|
||||||
|
%{_libdir}/*.a
|
||||||
|
%exclude %{_libdir}/*.so.*
|
||||||
|
|
||||||
|
%files help
|
||||||
|
%doc NEWS README
|
||||||
|
%{_datadir}/gtk-doc/html/*
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Sat Aug 24 2019 sunyun <sunyun9@huawei.com> - 2.6.4-20
|
||||||
|
- Package init
|
||||||
|
|
||||||
Loading…
x
Reference in New Issue
Block a user