Package: gperiodic Version: 2.0.10-4 Severity: wishlist Tags: patch debian/patches/11_remove_DEPRECATED_flags_for_GTK_2_4.dpatch solved FTBFS with newer GTK+ by removing the *_DISABLE_DEPRECATED from CFLAGS.
How about replacing the deprecated API with newer one instead? The required patch appears to be small. And the DEPRECATED flags can be added back. (The patch to Makefile is still needed, for external CFLAGS, LDFLAGS setting.) -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-3-amd64 (SMP w/2 CPU cores) Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages gperiodic depends on: ii libc6 2.7-12 GNU C Library: Shared libraries ii libglib2.0-0 2.16.3-2 The GLib library of C routines ii libgtk2.0-0 2.12.10-2 The GTK+ graphical user interface ii libpango1.0-0 1.20.3-2 Layout and rendering of internatio gperiodic recommends no packages. -- no debconf information -- Theppitak Karoonboonyanan http://linux.thai.net/~thep/
#! /bin/sh /usr/share/dpatch/dpatch-run ## 11_replace_deprecated_apis.dpatch by Theppitak Karoonboonyanan <[EMAIL PROTECTED]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Replace the deprecated GtkTooltips with direct ## DP: gtk_widget_set_tooltip*() call @DPATCH@ diff -urNad gperiodic-2.0.10~/gperiodic.c gperiodic-2.0.10/gperiodic.c --- gperiodic-2.0.10~/gperiodic.c 2008-06-30 08:01:10.000000000 +0700 +++ gperiodic-2.0.10/gperiodic.c 2008-06-30 08:03:32.000000000 +0700 @@ -386,9 +386,7 @@ table[i].info[NUMBER], table[i].info[WEIGHT]); /* create a new tooltips object... */ - table[i].tooltip = gtk_tooltips_new(); - gtk_tooltips_set_delay(table[i].tooltip,100); - gtk_tooltips_set_tip(table[i].tooltip,table[i].button,buff,NULL); + gtk_widget_set_tooltip_text(table[i].button,buff); /* attach the button to the table */ gtk_table_attach(GTK_TABLE(periodic_table), table[i].button, diff -urNad gperiodic-2.0.10~/gperiodic.h gperiodic-2.0.10/gperiodic.h --- gperiodic-2.0.10~/gperiodic.h 2007-07-11 19:59:30.000000000 +0700 +++ gperiodic-2.0.10/gperiodic.h 2008-06-30 08:03:32.000000000 +0700 @@ -70,7 +70,6 @@ GdkColor color; GtkStyle *style; GtkWidget *button; /* associated gtk button */ - GtkTooltips *tooltip; /* associated gtk tooltip */ }; struct colorscale { /* table of maxcolor GkdColors */
signature.asc
Description: Digital signature