mirror of
https://git.yoctoproject.org/poky
synced 2026-04-27 03:32:12 +02:00
gtk: dropped 2.6.8
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2048 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
@@ -1,24 +0,0 @@
|
||||
--- gtk+-2.4.1/docs/tutorial/Makefile.am~ 2003-05-06 22:54:20.000000000 +0100
|
||||
+++ gtk+-2.4.1/docs/tutorial/Makefile.am 2004-05-08 12:31:41.000000000 +0100
|
||||
@@ -52,21 +52,5 @@
|
||||
|
||||
dist-hook: html
|
||||
cp -Rp $(srcdir)/html $(distdir)
|
||||
-else
|
||||
-html:
|
||||
- echo "***"
|
||||
- echo "*** Warning: Tutorial not built"
|
||||
- echo "***"
|
||||
-
|
||||
-pdf:
|
||||
- echo "***"
|
||||
- echo "*** Warning: Tutorial not built"
|
||||
- echo "***"
|
||||
-
|
||||
-dist-hook:
|
||||
- echo "***"
|
||||
- echo "*** Warning: Tutorial not built"
|
||||
- echo "*** DISTRIBUTION IS INCOMPLETE"
|
||||
- echo "***"
|
||||
endif
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
--- gtk+-2.4.3/gtk/gtktooltips.c.old 2004-07-04 18:52:04.000000000 +0100
|
||||
+++ gtk+-2.4.3/gtk/gtktooltips.c 2004-07-04 18:52:08.000000000 +0100
|
||||
@@ -118,7 +118,7 @@
|
||||
tooltips->tips_data_list = NULL;
|
||||
|
||||
tooltips->delay = DEFAULT_DELAY;
|
||||
- tooltips->enabled = TRUE;
|
||||
+ tooltips->enabled = FALSE;
|
||||
tooltips->timer_tag = 0;
|
||||
tooltips->use_sticky_delay = FALSE;
|
||||
tooltips->last_popdown.tv_sec = -1;
|
||||
4980
meta/packages/gtk+/gtk+-2.6.8/filechooser-default.patch
vendored
4980
meta/packages/gtk+/gtk+-2.6.8/filechooser-default.patch
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,77 +0,0 @@
|
||||
--- gtk+-2.6.8/gtk/gtkfilechooserdialog.c.orig 2007-02-09 12:18:25.000000000 +0000
|
||||
+++ gtk+-2.6.8/gtk/gtkfilechooserdialog.c 2007-02-09 12:18:25.000000000 +0000
|
||||
@@ -62,8 +62,6 @@
|
||||
|
||||
static void gtk_file_chooser_dialog_map (GtkWidget *widget);
|
||||
static void gtk_file_chooser_dialog_unmap (GtkWidget *widget);
|
||||
-static void gtk_file_chooser_dialog_style_set (GtkWidget *widget,
|
||||
- GtkStyle *previous_style);
|
||||
|
||||
static void response_cb (GtkDialog *dialog,
|
||||
gint response_id);
|
||||
@@ -122,7 +120,6 @@
|
||||
|
||||
widget_class->map = gtk_file_chooser_dialog_map;
|
||||
widget_class->unmap = gtk_file_chooser_dialog_unmap;
|
||||
- widget_class->style_set = gtk_file_chooser_dialog_style_set;
|
||||
|
||||
_gtk_file_chooser_install_properties (gobject_class);
|
||||
|
||||
@@ -135,13 +132,19 @@
|
||||
GtkFileChooserDialogPrivate *priv = G_TYPE_INSTANCE_GET_PRIVATE (dialog,
|
||||
GTK_TYPE_FILE_CHOOSER_DIALOG,
|
||||
GtkFileChooserDialogPrivate);
|
||||
+
|
||||
+ GtkDialog *fc_dialog = GTK_DIALOG (dialog);
|
||||
+
|
||||
dialog->priv = priv;
|
||||
dialog->priv->default_width = -1;
|
||||
dialog->priv->default_height = -1;
|
||||
dialog->priv->resize_horizontally = TRUE;
|
||||
dialog->priv->resize_vertically = TRUE;
|
||||
|
||||
- gtk_dialog_set_has_separator (GTK_DIALOG (dialog), FALSE);
|
||||
+ gtk_dialog_set_has_separator (fc_dialog, FALSE);
|
||||
+ gtk_container_set_border_width (GTK_CONTAINER (fc_dialog), 5);
|
||||
+ gtk_box_set_spacing (GTK_BOX (fc_dialog->vbox), 2); /* 2 * 5 + 2 = 12 */
|
||||
+ gtk_container_set_border_width (GTK_CONTAINER (fc_dialog->action_area), 5);
|
||||
|
||||
/* We do a signal connection here rather than overriding the method in
|
||||
* class_init because GtkDialog::response is a RUN_LAST signal. We want *our*
|
||||
@@ -394,6 +397,7 @@
|
||||
g_signal_connect (priv->widget, "default-size-changed",
|
||||
G_CALLBACK (file_chooser_widget_default_size_changed), object);
|
||||
|
||||
+ gtk_container_set_border_width (GTK_CONTAINER (priv->widget), 5);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (object)->vbox), priv->widget, TRUE, TRUE, 0);
|
||||
|
||||
gtk_widget_show (priv->widget);
|
||||
@@ -522,28 +526,6 @@
|
||||
gtk_widget_unmap (priv->widget);
|
||||
}
|
||||
|
||||
-static void
|
||||
-gtk_file_chooser_dialog_style_set (GtkWidget *widget,
|
||||
- GtkStyle *previous_style)
|
||||
-{
|
||||
- GtkDialog *dialog;
|
||||
-
|
||||
- if (GTK_WIDGET_CLASS (parent_class)->style_set)
|
||||
- GTK_WIDGET_CLASS (parent_class)->style_set (widget, previous_style);
|
||||
-
|
||||
- dialog = GTK_DIALOG (widget);
|
||||
-
|
||||
- /* Override the style properties with HIG-compliant spacings. Ugh.
|
||||
- * http://developer.gnome.org/projects/gup/hig/1.0/layout.html#layout-dialogs
|
||||
- * http://developer.gnome.org/projects/gup/hig/1.0/windows.html#alert-spacing
|
||||
- */
|
||||
-
|
||||
- gtk_container_set_border_width (GTK_CONTAINER (dialog->vbox), 12);
|
||||
- gtk_box_set_spacing (GTK_BOX (dialog->vbox), 24);
|
||||
-
|
||||
- gtk_container_set_border_width (GTK_CONTAINER (dialog->action_area), 0);
|
||||
- gtk_box_set_spacing (GTK_BOX (dialog->action_area), 6);
|
||||
-}
|
||||
|
||||
/* GtkDialog::response handler */
|
||||
static void
|
||||
@@ -1,182 +0,0 @@
|
||||
--- gtk+-2.6.8/gtk/gtkfilesystemunix.c.orig 2007-02-08 12:01:19.000000000 +0000
|
||||
+++ gtk+-2.6.8/gtk/gtkfilesystemunix.c 2007-02-08 12:01:19.000000000 +0000
|
||||
@@ -33,6 +33,7 @@
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
#include <sys/stat.h>
|
||||
+#include <sys/statvfs.h>
|
||||
#include <sys/types.h>
|
||||
#include <pwd.h>
|
||||
#ifdef HAVE_UNISTD_H
|
||||
@@ -358,7 +359,49 @@
|
||||
static GSList *
|
||||
gtk_file_system_unix_list_volumes (GtkFileSystem *file_system)
|
||||
{
|
||||
- return g_slist_append (NULL, get_root_volume ());
|
||||
+ struct statvfs stv;
|
||||
+ struct stat st;
|
||||
+ GSList * l = g_slist_append (NULL, get_root_volume ());
|
||||
+
|
||||
+ if (!statvfs ("/.", &stv))
|
||||
+ {
|
||||
+ fsblkcnt_t root_blocks = stv.f_blocks;
|
||||
+ fsfilcnt_t root_files = stv.f_files;
|
||||
+
|
||||
+ GDir * dir;
|
||||
+ if ((dir = g_dir_open ("/media", 0, NULL)) != NULL)
|
||||
+ {
|
||||
+ const gchar * name;
|
||||
+ while ((name = g_dir_read_name (dir)) != NULL)
|
||||
+ {
|
||||
+ gchar * abs_name = g_strconcat ("/media/", name, NULL);
|
||||
+
|
||||
+ if (!stat (abs_name, &st) && S_ISDIR (st.st_mode))
|
||||
+ {
|
||||
+ gchar * dot = g_strconcat (abs_name, "/.", NULL);
|
||||
+ if (!statvfs (dot, &stv) &&
|
||||
+ (stv.f_blocks != root_blocks ||
|
||||
+ stv.f_files != root_files))
|
||||
+ {
|
||||
+ GtkFilePath * path =
|
||||
+ gtk_file_system_filename_to_path (file_system,
|
||||
+ abs_name);
|
||||
+
|
||||
+ if (path)
|
||||
+ l = g_slist_append (l, path);
|
||||
+ }
|
||||
+
|
||||
+ g_free (dot);
|
||||
+ }
|
||||
+
|
||||
+ g_free (abs_name);
|
||||
+ }
|
||||
+
|
||||
+ g_dir_close (dir);
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ return l;
|
||||
}
|
||||
|
||||
static GtkFileSystemVolume *
|
||||
@@ -375,10 +418,15 @@
|
||||
|
||||
len = strlen (filename);
|
||||
|
||||
- if (len > 1 && filename[len - 1] == '/')
|
||||
- return g_strndup (filename, len - 1);
|
||||
- else
|
||||
- return g_memdup (filename, len + 1);
|
||||
+ if (len > 1)
|
||||
+ {
|
||||
+ gchar *c = g_utf8_prev_char (filename + len);
|
||||
+
|
||||
+ if (c && *c == '/')
|
||||
+ return g_strndup (filename, len - 1);
|
||||
+ }
|
||||
+
|
||||
+ return g_memdup (filename, len + 1);
|
||||
}
|
||||
|
||||
static GtkFileFolder *
|
||||
@@ -590,7 +638,7 @@
|
||||
gtk_file_system_unix_volume_get_base_path (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume)
|
||||
{
|
||||
- return gtk_file_path_new_dup ("/");
|
||||
+ return gtk_file_path_copy ((GtkFilePath*)volume);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
@@ -616,7 +664,32 @@
|
||||
gtk_file_system_unix_volume_get_display_name (GtkFileSystem *file_system,
|
||||
GtkFileSystemVolume *volume)
|
||||
{
|
||||
- return g_strdup (_("Filesystem")); /* Same as Nautilus */
|
||||
+ gchar * slash;
|
||||
+ gchar * path;
|
||||
+ gchar * c;
|
||||
+
|
||||
+ g_return_val_if_fail (file_system && volume, NULL);
|
||||
+
|
||||
+ path = gtk_file_system_path_to_filename (file_system, (GtkFilePath*) volume);
|
||||
+
|
||||
+ g_return_val_if_fail (path && *path, NULL);
|
||||
+
|
||||
+ if (path[0] == '/' && !path[1])
|
||||
+ return g_strdup (_("Filesystem")); /* Same as Nautilus */
|
||||
+
|
||||
+ /* Now the media volumes */
|
||||
+ /* strip trailing / if any */
|
||||
+ c = g_utf8_prev_char (path + strlen(path));
|
||||
+
|
||||
+ if (*c == '/')
|
||||
+ *c = 0;
|
||||
+
|
||||
+ slash = g_utf8_strrchr (path, -1, '/');
|
||||
+
|
||||
+ if (!slash)
|
||||
+ return g_strdup (path);
|
||||
+
|
||||
+ return g_strdup (slash + 1);
|
||||
}
|
||||
|
||||
static IconType
|
||||
@@ -787,11 +860,54 @@
|
||||
GError **error)
|
||||
{
|
||||
GdkPixbuf *pixbuf;
|
||||
+ gchar * slash;
|
||||
+ gchar * path;
|
||||
+ gchar * c;
|
||||
+ const gchar * id = NULL;
|
||||
+
|
||||
+ g_return_val_if_fail (file_system && volume, NULL);
|
||||
+
|
||||
+ path = gtk_file_system_path_to_filename (file_system, (GtkFilePath*) volume);
|
||||
|
||||
- pixbuf = get_cached_icon (widget, "gnome-fs-blockdev", pixel_size);
|
||||
- if (pixbuf)
|
||||
- return pixbuf;
|
||||
+ g_return_val_if_fail (path && *path, NULL);
|
||||
+
|
||||
+ if (path[0] == '/' && !path[1])
|
||||
+ id = "gnome-fs-blockdev";
|
||||
+ else
|
||||
+ {
|
||||
+ /* Now the media volumes */
|
||||
+ /* strip trailing / if any */
|
||||
+ c = g_utf8_prev_char (path + strlen(path));
|
||||
+
|
||||
+ if (*c == '/')
|
||||
+ *c = 0;
|
||||
+
|
||||
+ slash = g_utf8_strrchr (path, -1, '/');
|
||||
|
||||
+ if (slash)
|
||||
+ {
|
||||
+ slash++;
|
||||
+
|
||||
+ if (!strcmp (slash, "card"))
|
||||
+ id = "gnome-dev-media-sdmmc";
|
||||
+ else if (!strcmp (slash, "cf"))
|
||||
+ id = "gnome-dev-media-cf";
|
||||
+ else if (!strncmp (slash, "mmc", 3))
|
||||
+ id = "gnome-dev-media-sdmmc";
|
||||
+ else if (!strcmp (slash, "usbhdd"))
|
||||
+ id = "gnome-dev-removable-usb";
|
||||
+ else
|
||||
+ id = "gnome-dev-removable";
|
||||
+ }
|
||||
+ }
|
||||
+
|
||||
+ if (id)
|
||||
+ {
|
||||
+ pixbuf = get_cached_icon (widget, id, pixel_size);
|
||||
+ if (pixbuf)
|
||||
+ return pixbuf;
|
||||
+ }
|
||||
+
|
||||
pixbuf = get_fallback_icon (widget, ICON_BLOCK_DEVICE, error);
|
||||
g_assert (pixbuf != NULL);
|
||||
|
||||
186
meta/packages/gtk+/gtk+-2.6.8/gtk+-handhelds.patch
vendored
186
meta/packages/gtk+/gtk+-2.6.8/gtk+-handhelds.patch
vendored
@@ -1,186 +0,0 @@
|
||||
--- gtk+-2.4.1/gtk/gtkcalendar.c 2004-03-06 14:37:26.000000000 +1100
|
||||
+++ gtk+-2.4.1/gtk/gtkcalendar.c 2004-05-26 14:58:57.000000000 +1000
|
||||
@@ -340,6 +340,9 @@
|
||||
static void gtk_calendar_select_and_focus_day (GtkCalendar *calendar,
|
||||
guint day);
|
||||
|
||||
+static void gtk_calendar_do_select_day (GtkCalendar *calendar,
|
||||
+ guint day);
|
||||
+
|
||||
static void gtk_calendar_paint_arrow (GtkWidget *widget,
|
||||
guint arrow);
|
||||
static void gtk_calendar_paint_day_num (GtkWidget *widget,
|
||||
@@ -861,13 +864,13 @@
|
||||
if (month_len < calendar->selected_day)
|
||||
{
|
||||
calendar->selected_day = 0;
|
||||
- gtk_calendar_select_day (calendar, month_len);
|
||||
+ gtk_calendar_do_select_day (calendar, month_len);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (calendar->selected_day < 0)
|
||||
calendar->selected_day = calendar->selected_day + 1 + month_length[leap (calendar->year)][calendar->month + 1];
|
||||
- gtk_calendar_select_day (calendar, calendar->selected_day);
|
||||
+ gtk_calendar_do_select_day (calendar, calendar->selected_day);
|
||||
}
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (calendar));
|
||||
@@ -908,10 +911,10 @@
|
||||
if (month_len < calendar->selected_day)
|
||||
{
|
||||
calendar->selected_day = 0;
|
||||
- gtk_calendar_select_day (calendar, month_len);
|
||||
+ gtk_calendar_do_select_day (calendar, month_len);
|
||||
}
|
||||
else
|
||||
- gtk_calendar_select_day (calendar, calendar->selected_day);
|
||||
+ gtk_calendar_do_select_day (calendar, calendar->selected_day);
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (calendar));
|
||||
gtk_calendar_thaw (calendar);
|
||||
@@ -939,10 +942,10 @@
|
||||
if (month_len < calendar->selected_day)
|
||||
{
|
||||
calendar->selected_day = 0;
|
||||
- gtk_calendar_select_day (calendar, month_len);
|
||||
+ gtk_calendar_do_select_day (calendar, month_len);
|
||||
}
|
||||
else
|
||||
- gtk_calendar_select_day (calendar, calendar->selected_day);
|
||||
+ gtk_calendar_do_select_day (calendar, calendar->selected_day);
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (calendar));
|
||||
gtk_calendar_thaw (calendar);
|
||||
@@ -974,10 +977,10 @@
|
||||
if (month_len < calendar->selected_day)
|
||||
{
|
||||
calendar->selected_day = 0;
|
||||
- gtk_calendar_select_day (calendar, month_len);
|
||||
+ gtk_calendar_do_select_day (calendar, month_len);
|
||||
}
|
||||
else
|
||||
- gtk_calendar_select_day (calendar, calendar->selected_day);
|
||||
+ gtk_calendar_do_select_day (calendar, calendar->selected_day);
|
||||
|
||||
gtk_widget_queue_draw (GTK_WIDGET (calendar));
|
||||
gtk_calendar_thaw (calendar);
|
||||
@@ -2480,9 +2483,9 @@
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
-void
|
||||
-gtk_calendar_select_day (GtkCalendar *calendar,
|
||||
- guint day)
|
||||
+static void
|
||||
+gtk_calendar_do_select_day (GtkCalendar *calendar,
|
||||
+ guint day)
|
||||
{
|
||||
g_return_if_fail (GTK_IS_CALENDAR (calendar));
|
||||
g_return_if_fail (day <= 31);
|
||||
@@ -2499,6 +2502,13 @@
|
||||
if (GTK_WIDGET_DRAWABLE (GTK_WIDGET (calendar)))
|
||||
gtk_calendar_paint_day_num (GTK_WIDGET (calendar), selected_day);
|
||||
}
|
||||
+}
|
||||
+
|
||||
+void
|
||||
+gtk_calendar_select_day (GtkCalendar *calendar,
|
||||
+ guint day)
|
||||
+{
|
||||
+ gtk_calendar_do_select_day (calendar, day);
|
||||
|
||||
calendar->selected_day = day;
|
||||
|
||||
--- gtk+-2.4.1/gtk/gtkentry.c 2004-04-22 08:08:08.000000000 +1000
|
||||
+++ gtk+-2.4.1/gtk/gtkentry.c 2004-05-26 14:52:17.000000000 +1000
|
||||
@@ -557,6 +557,15 @@
|
||||
0.0,
|
||||
G_PARAM_READABLE | G_PARAM_WRITABLE));
|
||||
|
||||
+ gtk_widget_class_install_style_property (widget_class,
|
||||
+ g_param_spec_int ("min_width",
|
||||
+ _("Minimum width"),
|
||||
+ _("Minimum width of the entry field"),
|
||||
+ 0,
|
||||
+ G_MAXINT,
|
||||
+ MIN_ENTRY_WIDTH,
|
||||
+ G_PARAM_READABLE));
|
||||
+
|
||||
signals[POPULATE_POPUP] =
|
||||
g_signal_new ("populate_popup",
|
||||
G_OBJECT_CLASS_TYPE (gobject_class),
|
||||
@@ -1124,7 +1133,7 @@
|
||||
{
|
||||
GtkEntry *entry = GTK_ENTRY (widget);
|
||||
PangoFontMetrics *metrics;
|
||||
- gint xborder, yborder;
|
||||
+ gint xborder, yborder, min_width;
|
||||
PangoContext *context;
|
||||
|
||||
gtk_widget_ensure_style (widget);
|
||||
@@ -1140,9 +1149,11 @@
|
||||
|
||||
xborder += INNER_BORDER;
|
||||
yborder += INNER_BORDER;
|
||||
-
|
||||
+
|
||||
+ gtk_widget_style_get (widget, "min_width", &min_width, NULL);
|
||||
+
|
||||
if (entry->width_chars < 0)
|
||||
- requisition->width = MIN_ENTRY_WIDTH + xborder * 2;
|
||||
+ requisition->width = min_width + xborder * 2;
|
||||
else
|
||||
{
|
||||
gint char_width = pango_font_metrics_get_approximate_char_width (metrics);
|
||||
--- gtk+-2.4.1/gtk/gtkrange.c 2004-03-06 14:38:08.000000000 +1100
|
||||
+++ gtk+-2.4.1/gtk/gtkrange.c 2004-05-26 14:52:17.000000000 +1000
|
||||
@@ -180,6 +180,7 @@
|
||||
static GtkWidgetClass *parent_class = NULL;
|
||||
static guint signals[LAST_SIGNAL];
|
||||
|
||||
+static GdkAtom recognize_protocols_atom, atom_atom;
|
||||
|
||||
GType
|
||||
gtk_range_get_type (void)
|
||||
@@ -220,6 +221,9 @@
|
||||
object_class = (GtkObjectClass*) class;
|
||||
widget_class = (GtkWidgetClass*) class;
|
||||
|
||||
+ recognize_protocols_atom = gdk_atom_intern ("RECOGNIZE_PROTOCOLS", FALSE);
|
||||
+ atom_atom = gdk_atom_intern ("ATOM", FALSE);
|
||||
+
|
||||
parent_class = g_type_class_peek_parent (class);
|
||||
|
||||
gobject_class->set_property = gtk_range_set_property;
|
||||
@@ -815,6 +819,12 @@
|
||||
&attributes, attributes_mask);
|
||||
gdk_window_set_user_data (range->event_window, range);
|
||||
|
||||
+ gdk_property_change (range->event_window,
|
||||
+ recognize_protocols_atom,
|
||||
+ atom_atom,
|
||||
+ 32, GDK_PROP_MODE_REPLACE,
|
||||
+ NULL, 0);
|
||||
+
|
||||
widget->style = gtk_style_attach (widget->style, widget->window);
|
||||
}
|
||||
|
||||
@@ -1186,7 +1196,7 @@
|
||||
|
||||
/* ignore presses when we're already doing something else. */
|
||||
if (range->layout->grab_location != MOUSE_OUTSIDE)
|
||||
- return FALSE;
|
||||
+ return TRUE;
|
||||
|
||||
range->layout->mouse_x = event->x;
|
||||
range->layout->mouse_y = event->y;
|
||||
@@ -1364,7 +1374,7 @@
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
- return FALSE;
|
||||
+ return TRUE;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1,10 +0,0 @@
|
||||
--- gtk+-2.4.3/gtk/gtklabel.c~ 2004-06-11 13:50:34.000000000 +0100
|
||||
+++ gtk+-2.4.3/gtk/gtklabel.c 2004-07-05 13:33:57.000000000 +0100
|
||||
@@ -1623,6 +1623,7 @@
|
||||
|
||||
/* We have to clear the layout, fonts etc. may have changed */
|
||||
gtk_label_clear_layout (label);
|
||||
+ gtk_widget_queue_resize (GTK_WIDGET (label));
|
||||
}
|
||||
|
||||
static void
|
||||
@@ -1,29 +0,0 @@
|
||||
--- gtk+-2.6.0/configure.in.old 2005-01-01 16:23:45.000000000 +0000
|
||||
+++ gtk+-2.6.0/configure.in 2005-01-01 16:24:03.000000000 +0000
|
||||
@@ -360,7 +360,7 @@
|
||||
AC_MSG_CHECKING([Whether to write dependencies into .pc files])
|
||||
case $enable_explicit_deps in
|
||||
auto)
|
||||
- deplib_check_method=`(./libtool --config; echo eval echo \\$deplib_check_method) | sh`
|
||||
+ deplib_check_method=`($host_alias-libtool --config; echo eval echo \\$deplib_check_method) | sh`
|
||||
if test "X$deplib_check_method" = Xnone || test "x$enable_static" = xyes ; then
|
||||
enable_explicit_deps=yes
|
||||
else
|
||||
@@ -688,7 +688,7 @@
|
||||
dnl Now we check to see if our libtool supports shared lib deps
|
||||
dnl (in a rather ugly way even)
|
||||
if $dynworks; then
|
||||
- pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} ./libtool --config"
|
||||
+ pixbuf_libtool_config="${CONFIG_SHELL-/bin/sh} $host_alias-libtool --config"
|
||||
pixbuf_deplibs_check=`$pixbuf_libtool_config | \
|
||||
grep '^[[a-z_]]*check[[a-z_]]*_method=[['\''"]]' | \
|
||||
sed 's/.*[['\''"]]\(.*\)[['\''"]]$/\1/'`
|
||||
@@ -1512,7 +1512,7 @@
|
||||
#
|
||||
# We are using gmodule-no-export now, but I'm leaving the stripping
|
||||
# code in place for now, since pango and atk still require gmodule.
|
||||
-export_dynamic=`(./libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
|
||||
+export_dynamic=`($host_alias-libtool --config; echo eval echo \\$export_dynamic_flag_spec) | sh`
|
||||
if test -n "$export_dynamic"; then
|
||||
GDK_PIXBUF_DEP_LIBS=`echo $GDK_PIXBUF_DEP_LIBS | sed -e "s/$export_dynamic//"`
|
||||
GDK_PIXBUF_XLIB_DEP_LIBS=`echo $GDK_PIXBUF_XLIB_DEP_LIBS | sed -e "s/$export_dynamic//"`
|
||||
@@ -1,50 +0,0 @@
|
||||
--- gtk+-2.4.4/gtk/gtkmenushell.c.old Thu Aug 26 23:45:28 2004
|
||||
+++ gtk+-2.4.4/gtk/gtkmenushell.c Fri Aug 27 00:13:33 2004
|
||||
@@ -37,7 +37,7 @@
|
||||
#include "gtktearoffmenuitem.h"
|
||||
#include "gtkwindow.h"
|
||||
|
||||
-#define MENU_SHELL_TIMEOUT 500
|
||||
+#define MENU_SHELL_TIMEOUT 2000
|
||||
|
||||
enum {
|
||||
DEACTIVATE,
|
||||
@@ -156,6 +156,7 @@
|
||||
static GtkContainerClass *parent_class = NULL;
|
||||
static guint menu_shell_signals[LAST_SIGNAL] = { 0 };
|
||||
|
||||
+static int last_crossing_time;
|
||||
|
||||
GType
|
||||
gtk_menu_shell_get_type (void)
|
||||
@@ -418,6 +419,7 @@
|
||||
gtk_grab_add (GTK_WIDGET (menu_shell));
|
||||
menu_shell->have_grab = TRUE;
|
||||
menu_shell->active = TRUE;
|
||||
+ last_crossing_time = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -545,6 +547,13 @@
|
||||
menu_shell->activate_time = 0;
|
||||
deactivate = FALSE;
|
||||
}
|
||||
+
|
||||
+ if (last_crossing_time != 0
|
||||
+ && ((event->time - last_crossing_time) < 500))
|
||||
+ {
|
||||
+ last_crossing_time = 0;
|
||||
+ deactivate = FALSE;
|
||||
+ }
|
||||
|
||||
if (deactivate)
|
||||
{
|
||||
@@ -597,6 +606,8 @@
|
||||
if (menu_shell->active)
|
||||
{
|
||||
menu_item = gtk_get_event_widget ((GdkEvent*) event);
|
||||
+
|
||||
+ last_crossing_time = event->time;
|
||||
|
||||
if (!menu_item ||
|
||||
(GTK_IS_MENU_ITEM (menu_item) &&
|
||||
10
meta/packages/gtk+/gtk+-2.6.8/no-demos.patch
vendored
10
meta/packages/gtk+/gtk+-2.6.8/no-demos.patch
vendored
@@ -1,10 +0,0 @@
|
||||
--- gtk+-2.4.1/Makefile.am~ 2004-01-17 22:15:56.000000000 +0000
|
||||
+++ gtk+-2.4.1/Makefile.am 2004-05-08 12:25:32.000000000 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
## Makefile.am for GTK+
|
||||
|
||||
-SRC_SUBDIRS = gdk-pixbuf gdk gtk modules demos tests contrib
|
||||
+SRC_SUBDIRS = gdk-pixbuf gdk gtk modules tests contrib
|
||||
SUBDIRS = po po-properties $(SRC_SUBDIRS) docs build m4macros
|
||||
|
||||
# require automake 1.4
|
||||
334
meta/packages/gtk+/gtk+-2.6.8/no-deprecation.patch
vendored
334
meta/packages/gtk+/gtk+-2.6.8/no-deprecation.patch
vendored
@@ -1,334 +0,0 @@
|
||||
diff -ru gtk+-2.6.8.orig/contrib/gdk-pixbuf-xlib/Makefile.am gtk+-2.6.8/contrib/gdk-pixbuf-xlib/Makefile.am
|
||||
--- gtk+-2.6.8.orig/contrib/gdk-pixbuf-xlib/Makefile.am 2004-03-03 20:53:23.000000000 +0000
|
||||
+++ gtk+-2.6.8/contrib/gdk-pixbuf-xlib/Makefile.am 2006-04-19 12:47:16.000000000 +0100
|
||||
@@ -4,7 +4,6 @@
|
||||
-I$(top_srcdir) -I$(top_builddir) \
|
||||
-I$(top_srcdir)/gdk-pixbuf \
|
||||
-I$(top_srcdir)/contrib \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_PIXBUF_XLIB_DEP_CFLAGS)
|
||||
|
||||
Only in gtk+-2.6.8/contrib/gdk-pixbuf-xlib: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/contrib/gdk-pixbuf-xlib/Makefile.in gtk+-2.6.8/contrib/gdk-pixbuf-xlib/Makefile.in
|
||||
--- gtk+-2.6.8.orig/contrib/gdk-pixbuf-xlib/Makefile.in 2005-06-15 20:57:33.000000000 +0100
|
||||
+++ gtk+-2.6.8/contrib/gdk-pixbuf-xlib/Makefile.in 2006-04-19 12:48:10.000000000 +0100
|
||||
@@ -290,7 +290,6 @@
|
||||
-I$(top_srcdir) -I$(top_builddir) \
|
||||
-I$(top_srcdir)/gdk-pixbuf \
|
||||
-I$(top_srcdir)/contrib \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_PIXBUF_XLIB_DEP_CFLAGS)
|
||||
|
||||
Only in gtk+-2.6.8/contrib/gdk-pixbuf-xlib: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/demos/gtk-demo/Makefile.am gtk+-2.6.8/demos/gtk-demo/Makefile.am
|
||||
--- gtk+-2.6.8.orig/demos/gtk-demo/Makefile.am 2005-05-25 07:48:28.000000000 +0100
|
||||
+++ gtk+-2.6.8/demos/gtk-demo/Makefile.am 2006-04-19 12:47:11.000000000 +0100
|
||||
@@ -35,7 +35,6 @@
|
||||
-DDEMOCODEDIR="\"$(democodedir)\"" \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/demos/gtk-demo: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/demos/gtk-demo/Makefile.in gtk+-2.6.8/demos/gtk-demo/Makefile.in
|
||||
--- gtk+-2.6.8.orig/demos/gtk-demo/Makefile.in 2005-06-15 20:57:34.000000000 +0100
|
||||
+++ gtk+-2.6.8/demos/gtk-demo/Makefile.in 2006-04-19 12:48:06.000000000 +0100
|
||||
@@ -319,7 +319,6 @@
|
||||
-DDEMOCODEDIR="\"$(democodedir)\"" \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/demos/gtk-demo: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/demos/Makefile.am gtk+-2.6.8/demos/Makefile.am
|
||||
--- gtk+-2.6.8.orig/demos/Makefile.am 2003-06-06 01:52:19.000000000 +0100
|
||||
+++ gtk+-2.6.8/demos/Makefile.am 2006-04-19 12:47:13.000000000 +0100
|
||||
@@ -5,7 +5,6 @@
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/demos: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/demos/Makefile.in gtk+-2.6.8/demos/Makefile.in
|
||||
--- gtk+-2.6.8.orig/demos/Makefile.in 2005-06-15 20:57:33.000000000 +0100
|
||||
+++ gtk+-2.6.8/demos/Makefile.in 2006-04-19 12:48:08.000000000 +0100
|
||||
@@ -291,7 +291,6 @@
|
||||
INCLUDES = \
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/demos: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/linux-fb/Makefile.am gtk+-2.6.8/gdk/linux-fb/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gdk/linux-fb/Makefile.am 2003-12-10 13:49:53.000000000 +0000
|
||||
+++ gtk+-2.6.8/gdk/linux-fb/Makefile.am 2006-04-19 12:47:02.000000000 +0100
|
||||
@@ -15,7 +15,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_DEP_CFLAGS) \
|
||||
$(GTK_DEBUG_FLAGS)
|
||||
Only in gtk+-2.6.8/gdk/linux-fb: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/linux-fb/Makefile.in gtk+-2.6.8/gdk/linux-fb/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gdk/linux-fb/Makefile.in 2005-06-15 20:57:38.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk/linux-fb/Makefile.in 2006-04-19 12:48:01.000000000 +0100
|
||||
@@ -297,7 +297,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_DEP_CFLAGS) \
|
||||
$(GTK_DEBUG_FLAGS)
|
||||
Only in gtk+-2.6.8/gdk/linux-fb: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/Makefile.am gtk+-2.6.8/gdk/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gdk/Makefile.am 2005-04-09 06:58:54.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk/Makefile.am 2006-04-19 12:47:05.000000000 +0100
|
||||
@@ -19,7 +19,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
-I$(top_srcdir)/gdk-pixbuf \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
Only in gtk+-2.6.8/gdk: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/Makefile.in gtk+-2.6.8/gdk/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gdk/Makefile.in 2005-06-15 20:57:38.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk/Makefile.in 2006-04-19 12:48:04.000000000 +0100
|
||||
@@ -307,7 +307,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
-I$(top_srcdir)/gdk-pixbuf \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
Only in gtk+-2.6.8/gdk: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/x11/Makefile.am gtk+-2.6.8/gdk/x11/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gdk/x11/Makefile.am 2003-12-10 13:49:57.000000000 +0000
|
||||
+++ gtk+-2.6.8/gdk/x11/Makefile.am 2006-04-19 12:46:59.000000000 +0100
|
||||
@@ -8,7 +8,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
Only in gtk+-2.6.8/gdk/x11: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gdk/x11/Makefile.in gtk+-2.6.8/gdk/x11/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gdk/x11/Makefile.in 2005-06-15 20:57:39.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk/x11/Makefile.in 2006-04-19 12:47:59.000000000 +0100
|
||||
@@ -295,7 +295,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
Only in gtk+-2.6.8/gdk/x11: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gdk-pixbuf/Makefile.am gtk+-2.6.8/gdk-pixbuf/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gdk-pixbuf/Makefile.am 2005-04-29 18:53:58.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk-pixbuf/Makefile.am 2006-04-19 12:47:35.000000000 +0100
|
||||
@@ -279,7 +279,6 @@
|
||||
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
|
||||
-DGTK_VERSION=\"$(GTK_VERSION)\" \
|
||||
-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGTK_PREFIX=\"$(prefix)\" \
|
||||
$(INCLUDED_LOADER_DEFINE) \
|
||||
Only in gtk+-2.6.8/gdk-pixbuf: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gdk-pixbuf/Makefile.in gtk+-2.6.8/gdk-pixbuf/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gdk-pixbuf/Makefile.in 2005-06-15 20:57:37.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk-pixbuf/Makefile.in 2006-04-19 12:48:47.000000000 +0100
|
||||
@@ -509,7 +509,6 @@
|
||||
-DGTK_SYSCONFDIR=\"$(sysconfdir)\" \
|
||||
-DGTK_VERSION=\"$(GTK_VERSION)\" \
|
||||
-DGTK_BINARY_VERSION=\"$(GTK_BINARY_VERSION)\" \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGTK_PREFIX=\"$(prefix)\" \
|
||||
$(INCLUDED_LOADER_DEFINE) \
|
||||
Only in gtk+-2.6.8/gdk-pixbuf: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gdk-pixbuf/pixops/Makefile.am gtk+-2.6.8/gdk-pixbuf/pixops/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gdk-pixbuf/pixops/Makefile.am 2003-05-06 22:54:28.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk-pixbuf/pixops/Makefile.am 2006-04-19 12:47:29.000000000 +0100
|
||||
@@ -4,7 +4,6 @@
|
||||
-I$(top_srcdir) -I$(top_builddir) \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
$(GDK_PIXBUF_DEP_CFLAGS) \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED
|
||||
|
||||
noinst_PROGRAMS = timescale
|
||||
Only in gtk+-2.6.8/gdk-pixbuf/pixops: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gdk-pixbuf/pixops/Makefile.in gtk+-2.6.8/gdk-pixbuf/pixops/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gdk-pixbuf/pixops/Makefile.in 2005-06-15 20:57:37.000000000 +0100
|
||||
+++ gtk+-2.6.8/gdk-pixbuf/pixops/Makefile.in 2006-04-19 12:48:44.000000000 +0100
|
||||
@@ -290,7 +290,6 @@
|
||||
-I$(top_srcdir) -I$(top_builddir) \
|
||||
$(GTK_DEBUG_FLAGS) \
|
||||
$(GDK_PIXBUF_DEP_CFLAGS) \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED
|
||||
|
||||
|
||||
Only in gtk+-2.6.8/gdk-pixbuf/pixops: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gtk/Makefile.am gtk+-2.6.8/gtk/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gtk/Makefile.am 2005-04-29 18:53:57.000000000 +0100
|
||||
+++ gtk+-2.6.8/gtk/Makefile.am 2006-04-19 12:47:27.000000000 +0100
|
||||
@@ -22,7 +22,6 @@
|
||||
-I$(top_srcdir) -I../gdk \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/gtk: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gtk/Makefile.in gtk+-2.6.8/gtk/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gtk/Makefile.in 2005-06-15 20:57:39.000000000 +0100
|
||||
+++ gtk+-2.6.8/gtk/Makefile.in 2006-04-19 12:48:41.000000000 +0100
|
||||
@@ -311,7 +311,6 @@
|
||||
-I$(top_srcdir) -I../gdk \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_srcdir)/gdk-pixbuf -I../gdk-pixbuf \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/gtk: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/gtk/theme-bits/Makefile.am gtk+-2.6.8/gtk/theme-bits/Makefile.am
|
||||
--- gtk+-2.6.8.orig/gtk/theme-bits/Makefile.am 2003-05-06 22:55:40.000000000 +0100
|
||||
+++ gtk+-2.6.8/gtk/theme-bits/Makefile.am 2006-04-19 12:47:21.000000000 +0100
|
||||
@@ -1,5 +1,4 @@
|
||||
INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_PIXBUF_DEP_CFLAGS)
|
||||
|
||||
Only in gtk+-2.6.8/gtk/theme-bits: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/gtk/theme-bits/Makefile.in gtk+-2.6.8/gtk/theme-bits/Makefile.in
|
||||
--- gtk+-2.6.8.orig/gtk/theme-bits/Makefile.in 2005-06-15 20:57:40.000000000 +0100
|
||||
+++ gtk+-2.6.8/gtk/theme-bits/Makefile.in 2006-04-19 12:48:39.000000000 +0100
|
||||
@@ -285,7 +285,6 @@
|
||||
sysconfdir = @sysconfdir@
|
||||
target_alias = @target_alias@
|
||||
INCLUDES = -I$(top_srcdir) -I$(top_builddir) \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
$(GDK_PIXBUF_DEP_CFLAGS)
|
||||
|
||||
Only in gtk+-2.6.8/gtk/theme-bits: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/modules/engines/ms-windows/Makefile.am gtk+-2.6.8/modules/engines/ms-windows/Makefile.am
|
||||
--- gtk+-2.6.8.orig/modules/engines/ms-windows/Makefile.am 2005-06-04 21:10:11.000000000 +0100
|
||||
+++ gtk+-2.6.8/modules/engines/ms-windows/Makefile.am 2006-04-19 12:47:40.000000000 +0100
|
||||
@@ -6,7 +6,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEP_CFLAGS)
|
||||
Only in gtk+-2.6.8/modules/engines/ms-windows: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/modules/engines/ms-windows/Makefile.in gtk+-2.6.8/modules/engines/ms-windows/Makefile.in
|
||||
--- gtk+-2.6.8.orig/modules/engines/ms-windows/Makefile.in 2005-06-15 20:57:41.000000000 +0100
|
||||
+++ gtk+-2.6.8/modules/engines/ms-windows/Makefile.in 2006-04-19 12:48:51.000000000 +0100
|
||||
@@ -292,7 +292,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEP_CFLAGS)
|
||||
Only in gtk+-2.6.8/modules/engines/ms-windows: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/modules/engines/pixbuf/Makefile.am gtk+-2.6.8/modules/engines/pixbuf/Makefile.am
|
||||
--- gtk+-2.6.8.orig/modules/engines/pixbuf/Makefile.am 2004-11-28 17:21:06.000000000 +0000
|
||||
+++ gtk+-2.6.8/modules/engines/pixbuf/Makefile.am 2006-04-19 12:47:38.000000000 +0100
|
||||
@@ -6,7 +6,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEP_CFLAGS)
|
||||
Only in gtk+-2.6.8/modules/engines/pixbuf: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/modules/engines/pixbuf/Makefile.in gtk+-2.6.8/modules/engines/pixbuf/Makefile.in
|
||||
--- gtk+-2.6.8.orig/modules/engines/pixbuf/Makefile.in 2005-06-15 20:57:41.000000000 +0100
|
||||
+++ gtk+-2.6.8/modules/engines/pixbuf/Makefile.in 2006-04-19 12:48:49.000000000 +0100
|
||||
@@ -290,7 +290,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
$(GTK_DEP_CFLAGS)
|
||||
Only in gtk+-2.6.8/modules/engines/pixbuf: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/modules/input/Makefile.am gtk+-2.6.8/modules/input/Makefile.am
|
||||
--- gtk+-2.6.8.orig/modules/input/Makefile.am 2005-06-04 23:10:04.000000000 +0100
|
||||
+++ gtk+-2.6.8/modules/input/Makefile.am 2006-04-19 12:47:43.000000000 +0100
|
||||
@@ -8,7 +8,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/modules/input: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/modules/input/Makefile.in gtk+-2.6.8/modules/input/Makefile.in
|
||||
--- gtk+-2.6.8.orig/modules/input/Makefile.in 2005-06-15 20:57:42.000000000 +0100
|
||||
+++ gtk+-2.6.8/modules/input/Makefile.in 2006-04-19 12:48:53.000000000 +0100
|
||||
@@ -291,7 +291,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_srcdir)/gdk \
|
||||
-I$(top_builddir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/modules/input: Makefile.in~
|
||||
diff -ru gtk+-2.6.8.orig/tests/Makefile.am gtk+-2.6.8/tests/Makefile.am
|
||||
--- gtk+-2.6.8.orig/tests/Makefile.am 2004-11-12 15:26:07.000000000 +0000
|
||||
+++ gtk+-2.6.8/tests/Makefile.am 2006-04-19 12:47:19.000000000 +0100
|
||||
@@ -4,7 +4,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
-I$(top_srcdir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/tests: Makefile.am~
|
||||
diff -ru gtk+-2.6.8.orig/tests/Makefile.in gtk+-2.6.8/tests/Makefile.in
|
||||
--- gtk+-2.6.8.orig/tests/Makefile.in 2005-06-15 20:57:42.000000000 +0100
|
||||
+++ gtk+-2.6.8/tests/Makefile.in 2006-04-19 12:48:20.000000000 +0100
|
||||
@@ -289,7 +289,6 @@
|
||||
-I$(top_srcdir) \
|
||||
-I$(top_builddir)/gdk \
|
||||
-I$(top_srcdir)/gdk \
|
||||
- -DG_DISABLE_DEPRECATED \
|
||||
-DGDK_PIXBUF_DISABLE_DEPRECATED \
|
||||
-DGDK_DISABLE_DEPRECATED \
|
||||
-DGTK_DISABLE_DEPRECATED \
|
||||
Only in gtk+-2.6.8/tests: Makefile.in~
|
||||
151
meta/packages/gtk+/gtk+-2.6.8/no-xwc.patch
vendored
151
meta/packages/gtk+/gtk+-2.6.8/no-xwc.patch
vendored
@@ -1,151 +0,0 @@
|
||||
diff -urNd ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c
|
||||
--- ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c 2004-11-30 14:57:14 +00:00
|
||||
+++ gtk+-2.6.0/gdk/x11/gdkdrawable-x11.c 2005-01-02 15:38:06 +00:00
|
||||
@@ -576,12 +576,14 @@
|
||||
GDK_GC_GET_XGC (gc), x, y, (XChar2b *) text, text_length / 2);
|
||||
}
|
||||
}
|
||||
+#ifdef HAVE_XWC
|
||||
else if (font->type == GDK_FONT_FONTSET)
|
||||
{
|
||||
XFontSet fontset = (XFontSet) GDK_FONT_XFONT (font);
|
||||
XmbDrawString (xdisplay, impl->xid,
|
||||
fontset, GDK_GC_GET_XGC (gc), x, y, text, text_length);
|
||||
}
|
||||
+#endif
|
||||
else
|
||||
g_error("undefined font type\n");
|
||||
}
|
||||
@@ -613,6 +615,7 @@
|
||||
GDK_GC_GET_XGC (gc), x, y, text_8bit, text_length);
|
||||
g_free (text_8bit);
|
||||
}
|
||||
+#ifdef HAVE_XWC
|
||||
else if (font->type == GDK_FONT_FONTSET)
|
||||
{
|
||||
if (sizeof(GdkWChar) == sizeof(wchar_t))
|
||||
@@ -633,6 +636,7 @@
|
||||
g_free (text_wchar);
|
||||
}
|
||||
}
|
||||
+#endif
|
||||
else
|
||||
g_error("undefined font type\n");
|
||||
}
|
||||
diff -urNd ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkfont-x11.c gtk+-2.6.0/gdk/x11/gdkfont-x11.c
|
||||
--- ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkfont-x11.c 2004-08-26 01:23:46 +01:00
|
||||
+++ gtk+-2.6.0/gdk/x11/gdkfont-x11.c 2005-01-02 15:45:39 +00:00
|
||||
@@ -525,10 +525,12 @@
|
||||
width = XTextWidth16 (xfont, (XChar2b *) text, text_length / 2);
|
||||
}
|
||||
break;
|
||||
+#ifdef HAVE_XWC
|
||||
case GDK_FONT_FONTSET:
|
||||
fontset = (XFontSet) private->xfont;
|
||||
width = XmbTextEscapement (fontset, text, text_length);
|
||||
break;
|
||||
+#endif
|
||||
default:
|
||||
width = 0;
|
||||
}
|
||||
@@ -578,6 +580,7 @@
|
||||
width = 0;
|
||||
}
|
||||
break;
|
||||
+#ifdef HAVE_XWC
|
||||
case GDK_FONT_FONTSET:
|
||||
if (sizeof(GdkWChar) == sizeof(wchar_t))
|
||||
{
|
||||
@@ -595,6 +598,7 @@
|
||||
g_free (text_wchar);
|
||||
}
|
||||
break;
|
||||
+#endif
|
||||
default:
|
||||
width = 0;
|
||||
}
|
||||
@@ -667,6 +671,7 @@
|
||||
if (descent)
|
||||
*descent = overall.descent;
|
||||
break;
|
||||
+#ifdef HAVE_XWC
|
||||
case GDK_FONT_FONTSET:
|
||||
fontset = (XFontSet) private->xfont;
|
||||
XmbTextExtents (fontset, text, text_length, &ink, &logical);
|
||||
@@ -681,6 +686,7 @@
|
||||
if (descent)
|
||||
*descent = ink.y + ink.height;
|
||||
break;
|
||||
+#endif
|
||||
}
|
||||
|
||||
}
|
||||
@@ -753,6 +759,7 @@
|
||||
*descent = overall.descent;
|
||||
break;
|
||||
}
|
||||
+#ifdef HAVE_XWC
|
||||
case GDK_FONT_FONTSET:
|
||||
fontset = (XFontSet) private->xfont;
|
||||
|
||||
@@ -780,6 +787,7 @@
|
||||
if (descent)
|
||||
*descent = ink.y + ink.height;
|
||||
break;
|
||||
+#endif
|
||||
}
|
||||
|
||||
}
|
||||
diff -urNd ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkim-x11.c gtk+-2.6.0/gdk/x11/gdkim-x11.c
|
||||
--- ../gtk+-2.6.0-r2/gtk+-2.6.0/gdk/x11/gdkim-x11.c 2004-11-17 00:55:10 +00:00
|
||||
+++ gtk+-2.6.0/gdk/x11/gdkim-x11.c 2005-01-02 15:42:04 +00:00
|
||||
@@ -48,6 +48,7 @@
|
||||
void
|
||||
_gdk_x11_initialize_locale (void)
|
||||
{
|
||||
+#ifdef HAVE_XWC
|
||||
wchar_t result;
|
||||
gchar *current_locale;
|
||||
static char *last_locale = NULL;
|
||||
@@ -93,7 +94,8 @@
|
||||
GDK_NOTE (XIM,
|
||||
g_message ("%s multi-byte string functions.",
|
||||
gdk_use_mb ? "Using" : "Not using"));
|
||||
-
|
||||
+#endif
|
||||
+
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -136,6 +138,7 @@
|
||||
{
|
||||
gchar *mbstr;
|
||||
|
||||
+#ifdef HAVE_XWC
|
||||
if (gdk_use_mb)
|
||||
{
|
||||
GdkDisplay *display = find_a_display ();
|
||||
@@ -178,6 +181,7 @@
|
||||
XFree (tpr.value);
|
||||
}
|
||||
else
|
||||
+#endif
|
||||
{
|
||||
gint length = 0;
|
||||
gint i;
|
||||
@@ -210,6 +214,7 @@
|
||||
gint
|
||||
gdk_mbstowcs (GdkWChar *dest, const gchar *src, gint dest_max)
|
||||
{
|
||||
+#ifdef HAVE_XWC
|
||||
if (gdk_use_mb)
|
||||
{
|
||||
GdkDisplay *display = find_a_display ();
|
||||
@@ -242,6 +247,7 @@
|
||||
return len_cpy;
|
||||
}
|
||||
else
|
||||
+#endif
|
||||
{
|
||||
gint i;
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
--- gtk+-2.4.4/gtk/gtkrange.c~ 2004-08-23 01:50:22.000000000 +0100
|
||||
+++ gtk+-2.4.4/gtk/gtkrange.c 2004-08-27 15:48:49.000000000 +0100
|
||||
@@ -35,9 +35,9 @@
|
||||
#include "gtkintl.h"
|
||||
#include "gtkscrollbar.h"
|
||||
|
||||
-#define SCROLL_INITIAL_DELAY 250 /* must hold button this long before ... */
|
||||
-#define SCROLL_LATER_DELAY 100 /* ... it starts repeating at this rate */
|
||||
-#define UPDATE_DELAY 300 /* Delay for queued update */
|
||||
+#define SCROLL_INITIAL_DELAY 500 /* must hold button this long before ... */
|
||||
+#define SCROLL_LATER_DELAY 200 /* ... it starts repeating at this rate */
|
||||
+#define UPDATE_DELAY 1000 /* Delay for queued update */
|
||||
|
||||
enum {
|
||||
PROP_0,
|
||||
@@ -1,47 +0,0 @@
|
||||
Index: gtkfilechooserdefault.c
|
||||
===================================================================
|
||||
RCS file: /cvs/gnome/gtk+/gtk/gtkfilechooserdefault.c,v
|
||||
retrieving revision 1.240.2.25
|
||||
diff -u -p -r1.240.2.25 gtkfilechooserdefault.c
|
||||
--- gtk+/gtk/gtkfilechooserdefault.c 7 Jul 2005 17:14:09 -0000 1.240.2.25
|
||||
+++ gtk+/gtk/gtkfilechooserdefault.c 27 Oct 2006 14:22:28 -0000
|
||||
@@ -3728,6 +3728,7 @@ browse_widgets_create (GtkFileChooserDef
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *hpaned;
|
||||
GtkWidget *widget;
|
||||
+ GtkWidget *shortcuts_pane;
|
||||
GtkSizeGroup *size_group;
|
||||
|
||||
/* size group is used by the [+][-] buttons and the filter combo */
|
||||
@@ -3740,12 +3741,29 @@ browse_widgets_create (GtkFileChooserDef
|
||||
gtk_paned_set_position (GTK_PANED (hpaned), 200); /* FIXME: this sucks */
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0);
|
||||
|
||||
- widget = shortcuts_pane_create (impl, size_group);
|
||||
- gtk_paned_pack1 (GTK_PANED (hpaned), widget, FALSE, FALSE);
|
||||
+ shortcuts_pane = shortcuts_pane_create (impl, size_group);
|
||||
+ gtk_paned_pack1 (GTK_PANED (hpaned), shortcuts_pane, FALSE, FALSE);
|
||||
widget = file_pane_create (impl, size_group);
|
||||
gtk_paned_pack2 (GTK_PANED (hpaned), widget, TRUE, FALSE);
|
||||
|
||||
g_object_unref (size_group);
|
||||
+
|
||||
+
|
||||
+ /* remove excess baggage from the filechooser for small displays */
|
||||
+
|
||||
+ /* get the columns in the tree view and remove the last column (should be Modified column) */
|
||||
+ GList *column_list;
|
||||
+ column_list = gtk_tree_view_get_columns (GTK_TREE_VIEW (impl->browse_files_tree_view));
|
||||
+ gtk_tree_view_remove_column (GTK_TREE_VIEW (impl->browse_files_tree_view), (g_list_last (column_list))->data);
|
||||
+ g_list_free (column_list);
|
||||
+
|
||||
+ /* hide the tree view headers */
|
||||
+ gtk_tree_view_set_headers_visible (GTK_TREE_VIEW (impl->browse_files_tree_view), FALSE);
|
||||
+
|
||||
+ /* hide the shortcuts pane */
|
||||
+ gtk_widget_hide (GTK_WIDGET (shortcuts_pane));
|
||||
+
|
||||
+
|
||||
|
||||
return vbox;
|
||||
}
|
||||
128
meta/packages/gtk+/gtk+-2.6.8/spinbutton.patch
vendored
128
meta/packages/gtk+/gtk+-2.6.8/spinbutton.patch
vendored
@@ -1,128 +0,0 @@
|
||||
--- gtk+-2.4.3/gtk/gtkspinbutton.c.old 2004-04-22 14:49:27.000000000 +0100
|
||||
+++ gtk+-2.4.3/gtk/gtkspinbutton.c 2004-06-30 21:48:18.000000000 +0100
|
||||
@@ -733,7 +733,7 @@
|
||||
|
||||
spin = GTK_SPIN_BUTTON (widget);
|
||||
arrow_size = spin_button_get_arrow_size (spin);
|
||||
- panel_width = arrow_size + 2 * widget->style->xthickness;
|
||||
+ panel_width = (2 * arrow_size) + 4 * widget->style->xthickness;
|
||||
|
||||
widget->allocation = *allocation;
|
||||
|
||||
@@ -866,19 +866,16 @@
|
||||
{
|
||||
width = spin_button_get_arrow_size (spin_button) + 2 * widget->style->xthickness;
|
||||
|
||||
+ y = widget->style->ythickness;
|
||||
+ height = widget->requisition.height - (2 * y);
|
||||
+
|
||||
if (arrow_type == GTK_ARROW_UP)
|
||||
{
|
||||
x = 0;
|
||||
- y = 0;
|
||||
-
|
||||
- height = widget->requisition.height / 2;
|
||||
}
|
||||
else
|
||||
{
|
||||
- x = 0;
|
||||
- y = widget->requisition.height / 2;
|
||||
-
|
||||
- height = (widget->requisition.height + 1) / 2;
|
||||
+ x = width;
|
||||
}
|
||||
|
||||
if (spin_button_at_limit (spin_button, arrow_type))
|
||||
@@ -908,32 +905,17 @@
|
||||
shadow_type = GTK_SHADOW_OUT;
|
||||
}
|
||||
}
|
||||
-
|
||||
+
|
||||
gtk_paint_box (widget->style, spin_button->panel,
|
||||
state_type, shadow_type,
|
||||
NULL, widget,
|
||||
- (arrow_type == GTK_ARROW_UP)? "spinbutton_up" : "spinbutton_down",
|
||||
+ NULL,
|
||||
x, y, width, height);
|
||||
|
||||
height = widget->requisition.height;
|
||||
|
||||
- if (arrow_type == GTK_ARROW_DOWN)
|
||||
- {
|
||||
- y = height / 2;
|
||||
- height = height - y - 2;
|
||||
- }
|
||||
- else
|
||||
- {
|
||||
- y = 2;
|
||||
- height = height / 2 - 2;
|
||||
- }
|
||||
-
|
||||
width -= 3;
|
||||
-
|
||||
- if (widget && gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
|
||||
- x = 2;
|
||||
- else
|
||||
- x = 1;
|
||||
+ height -= 3;
|
||||
|
||||
w = width / 2;
|
||||
w -= w % 2 - 1; /* force odd */
|
||||
@@ -1108,7 +1090,7 @@
|
||||
if (GTK_ENTRY (widget)->editable)
|
||||
gtk_spin_button_update (spin);
|
||||
|
||||
- if (event->y <= widget->requisition.height / 2)
|
||||
+ if (event->x <= (spin_button_get_arrow_size (spin) + widget->style->xthickness))
|
||||
{
|
||||
if (event->button == 1)
|
||||
start_spinning (spin, GTK_ARROW_UP, spin->adjustment->step_increment);
|
||||
@@ -1143,44 +1125,11 @@
|
||||
|
||||
arrow_size = spin_button_get_arrow_size (spin);
|
||||
|
||||
- if (event->button == spin->button)
|
||||
- {
|
||||
- int click_child = spin->click_child;
|
||||
+ gtk_spin_button_stop_spinning (spin);
|
||||
|
||||
- gtk_spin_button_stop_spinning (spin);
|
||||
-
|
||||
- if (event->button == 3)
|
||||
- {
|
||||
- if (event->y >= 0 && event->x >= 0 &&
|
||||
- event->y <= widget->requisition.height &&
|
||||
- event->x <= arrow_size + 2 * widget->style->xthickness)
|
||||
- {
|
||||
- if (click_child == GTK_ARROW_UP &&
|
||||
- event->y <= widget->requisition.height / 2)
|
||||
- {
|
||||
- gdouble diff;
|
||||
-
|
||||
- diff = spin->adjustment->upper - spin->adjustment->value;
|
||||
- if (diff > EPSILON)
|
||||
- gtk_spin_button_real_spin (spin, diff);
|
||||
- }
|
||||
- else if (click_child == GTK_ARROW_DOWN &&
|
||||
- event->y > widget->requisition.height / 2)
|
||||
- {
|
||||
- gdouble diff;
|
||||
-
|
||||
- diff = spin->adjustment->value - spin->adjustment->lower;
|
||||
- if (diff > EPSILON)
|
||||
- gtk_spin_button_real_spin (spin, -diff);
|
||||
- }
|
||||
- }
|
||||
- }
|
||||
- spin_button_redraw (spin);
|
||||
+ spin_button_redraw (spin);
|
||||
|
||||
- return TRUE;
|
||||
- }
|
||||
- else
|
||||
- return GTK_WIDGET_CLASS (parent_class)->button_release_event (widget, event);
|
||||
+ return TRUE;
|
||||
}
|
||||
|
||||
static gint
|
||||
@@ -1,95 +0,0 @@
|
||||
LICENSE = "LGPL"
|
||||
DESCRIPTION = "GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete \
|
||||
set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites."
|
||||
HOMEPAGE = "http://www.gtk.org"
|
||||
SECTION = "libs"
|
||||
PRIORITY = "optional"
|
||||
DEPENDS = "glib-2.0 pango atk jpeg libpng libxext libxcursor gtk-doc libgcrypt"
|
||||
PR = "r5"
|
||||
|
||||
SRC_URI = "ftp://ftp.gtk.org/pub/gtk/v2.6/gtk+-${PV}.tar.bz2 \
|
||||
file://no-demos.patch;patch=1 \
|
||||
file://no-xwc.patch;patch=1 \
|
||||
file://automake-lossage.patch;patch=1 \
|
||||
file://gtk+-handhelds.patch;patch=1 \
|
||||
file://hardcoded_libtool.patch;patch=1 \
|
||||
file://disable-tooltips.patch;patch=1 \
|
||||
file://gtklabel-resize-patch;patch=1 \
|
||||
file://menu-deactivate.patch;patch=1 \
|
||||
file://scroll-timings.patch;patch=1 \
|
||||
file://no-deprecation.patch;patch=1 \
|
||||
file://filesystem-volumes.patch;patch=1 \
|
||||
file://filechooser-respect-style.patch;patch=1 \
|
||||
file://filechooser-default.patch;patch=1 \
|
||||
"
|
||||
|
||||
inherit autotools pkgconfig
|
||||
|
||||
FILES_${PN} = "${bindir}/gdk-pixbuf-query-loaders \
|
||||
${bindir}/gtk-query-immodules-2.0 \
|
||||
${bindir}/gtk-update-icon-cache \
|
||||
${libdir}/lib*.so.* \
|
||||
${datadir}/themes ${sysconfdir} \
|
||||
${libdir}/gtk-2.0/${LIBV}/engines/libpixmap.so"
|
||||
FILES_${PN}-dev += " \
|
||||
${datadir}/gtk-2.0/include \
|
||||
${libdir}/gtk-2.0/include \
|
||||
${libdir}/gtk-2.0/${LIBV}/loaders/*.la \
|
||||
${libdir}/gtk-2.0/${LIBV}/immodules/*.la \
|
||||
${libdir}/gtk-2.0/${LIBV}/engines/*.la \
|
||||
${bindir}/gdk-pixbuf-csource"
|
||||
FILES_${PN}-dbg += " \
|
||||
${libdir}/gtk-2.0/${LIBV}/loaders/.debug/* \
|
||||
${libdir}/gtk-2.0/${LIBV}/immodules/.debug/* \
|
||||
${libdir}/gtk-2.0/${LIBV}/engines/.debug/*"
|
||||
|
||||
RRECOMMENDS_linux_${PN} = "glibc-gconv-iso8859-1"
|
||||
|
||||
EXTRA_OECONF = "--without-libtiff --disable-xkb --disable-glibtest --enable-display-migration"
|
||||
# --disable-cruft
|
||||
|
||||
LIBV = "2.4.0"
|
||||
LEAD_SONAME = "libgtk-x11*"
|
||||
|
||||
do_stage () {
|
||||
oe_libinstall -so -C gtk libgtk-x11-2.0 ${STAGING_LIBDIR}
|
||||
oe_libinstall -so -C gdk libgdk-x11-2.0 ${STAGING_LIBDIR}
|
||||
oe_libinstall -so -C contrib/gdk-pixbuf-xlib libgdk_pixbuf_xlib-2.0 ${STAGING_LIBDIR}
|
||||
oe_libinstall -so -C gdk-pixbuf libgdk_pixbuf-2.0 ${STAGING_LIBDIR}
|
||||
|
||||
autotools_stage_includes
|
||||
|
||||
mkdir -p ${STAGING_LIBDIR}/gtk-2.0/include
|
||||
install -m 0644 gdk/gdkconfig.h ${STAGING_LIBDIR}/gtk-2.0/include/gdkconfig.h
|
||||
|
||||
install -m 0644 m4macros/gtk-2.0.m4 ${STAGING_DATADIR}/aclocal/
|
||||
}
|
||||
|
||||
do_install_append () {
|
||||
install -d ${D}${sysconfdir}/gtk-2.0
|
||||
}
|
||||
|
||||
postinst_prologue() {
|
||||
if [ "x$D" != "x" ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
}
|
||||
|
||||
PACKAGES_DYNAMIC = "gdk-pixbuf-loader-* gtk-immodule-*"
|
||||
|
||||
python populate_packages_prepend () {
|
||||
import os.path
|
||||
|
||||
prologue = bb.data.getVar("postinst_prologue", d, 1)
|
||||
|
||||
gtk_libdir = bb.data.expand('${libdir}/gtk-2.0/${LIBV}', d)
|
||||
loaders_root = os.path.join(gtk_libdir, 'loaders')
|
||||
immodules_root = os.path.join(gtk_libdir, 'immodules')
|
||||
|
||||
do_split_packages(d, loaders_root, '^libpixbufloader-(.*)\.so$', 'gdk-pixbuf-loader-%s', 'GDK pixbuf loader for %s', prologue + 'gdk-pixbuf-query-loaders > /etc/gtk-2.0/gdk-pixbuf.loaders')
|
||||
do_split_packages(d, immodules_root, '^im-(.*)\.so$', 'gtk-immodule-%s', 'GTK input module for %s', prologue + 'gtk-query-immodules-2.0 > /etc/gtk-2.0/gtk.immodules')
|
||||
|
||||
if (bb.data.getVar('DEBIAN_NAMES', d, 1)):
|
||||
bb.data.setVar('PKG_${PN}', 'libgtk-2.0', d)
|
||||
}
|
||||
Reference in New Issue
Block a user