more xopts
[k8sbuild.git] / xoptz / gbdfed.xopt
blob02112688726797058c86a0defa1891dafb6df9c6
1 profile=empty
4 [preconfig-patch]
5 diff -uEBbr orig/Makefile.in new/Makefile.in
6 --- orig/Makefile.in    2010-04-16 17:38:59.000000000 +0300
7 +++ new/Makefile.in     2011-12-08 06:04:05.000000000 +0200
8 @@ -27,7 +27,7 @@
9  CC = @CC@
10  CFLAGS = @XX_CFLAGS@ @CFLAGS@
12 -DEFINES = @DEFINES@ -DG_DISABLE_DEPRECATED \
13 +DEFINES = @DEFINES@ #-DG_DISABLE_DEPRECATED \
14         -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED \
15         -DGTK_DISABLE_DEPRECATED
17 [/preconfig-patch]
19 [postconfig-patch]
20 diff -uEBbr orig/fontgrid.c new/fontgrid.c
21 --- orig/fontgrid.c     2010-04-16 17:39:02.000000000 +0300
22 +++ new/fontgrid.c      2011-12-08 05:58:36.000000000 +0200
23 @@ -598,7 +598,8 @@
24      g_return_if_fail(IS_FONTGRID(widget));
26      fw = FONTGRID(widget);
27 -    GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED);
28 +    /*GTK_WIDGET_SET_FLAGS(widget, GTK_REALIZED);*/
29 +    gtk_widget_set_realized(widget, TRUE);
31      attributes.window_type = GDK_WINDOW_CHILD;
32      attributes.x = widget->allocation.x;
33 @@ -1304,7 +1305,8 @@
34      g_return_val_if_fail(IS_FONTGRID(widget), FALSE);
35      g_return_val_if_fail(event != NULL, FALSE);
37 -    GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);
38 +    /*GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);*/
39 +    gtk_widget_set_can_focus(widget, TRUE);
40      fontgrid_draw_focus(widget, 0);
42      return FALSE;
43 @@ -1317,7 +1319,8 @@
44      g_return_val_if_fail(IS_FONTGRID(widget), FALSE);
45      g_return_val_if_fail(event != NULL, FALSE);
47 -    GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_FOCUS);
48 +    /*GTK_WIDGET_UNSET_FLAGS(widget, GTK_HAS_FOCUS);*/
49 +    gtk_widget_set_can_focus(widget, FALSE);
50      fontgrid_draw_focus(widget, 0);
52      return FALSE;
53 @@ -1441,7 +1444,8 @@
54       * Deal with the focus issue first.
55       */
56      if (!GTK_WIDGET_HAS_FOCUS(widget)) {
57 -        GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);
58 +        /*GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);*/
59 +        gtk_widget_set_can_focus(widget, TRUE);
60          (void) fontgrid_draw_focus(widget, NULL);
61      }
63 @@ -1556,7 +1560,8 @@
64       * Deal with the focus issue first.
65       */
66      if (!GTK_WIDGET_HAS_FOCUS(widget)) {
67 -        GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);
68 +        /*GTK_WIDGET_SET_FLAGS(widget, GTK_HAS_FOCUS);*/
69 +        gtk_widget_set_can_focus(widget, TRUE);
70          (void) fontgrid_draw_focus(widget, NULL);
71      }
73 @@ -2456,7 +2461,8 @@
74      GdkScreen *screen;
75      gint fwidth, fpad;
77 -    GTK_WIDGET_SET_FLAGS(fw, GTK_CAN_FOCUS);
78 +    /*GTK_WIDGET_SET_FLAGS(fw, GTK_CAN_FOCUS);*/
79 +    gtk_widget_set_can_focus(GTK_WIDGET(fw), TRUE);
81      gtk_widget_style_get(GTK_WIDGET(fw),
82                           "focus-line-width", &fwidth,
83 diff -uEBbr orig/gectrl.c new/gectrl.c
84 --- orig/gectrl.c       2010-04-16 17:39:03.000000000 +0300
85 +++ new/gectrl.c        2011-12-08 06:00:26.000000000 +0200
86 @@ -20,6 +20,7 @@
87   * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
88   */
90 +#include <gdk/gdk.h>
91  #include <gtk/gtklabel.h>
92  #include "gectrl.h"
93  #include "gectrlbmaps.h"
94 [/postconfig-patch]
97 !DESC
98 gbdfed (bitmap font editor)
100 gbdfed lets you interactively create new bitmap font files or modify
101 existing ones. It allows editing multiple fonts and multiple glyphs,
102 it allows cut and paste operations between fonts and glyphs and
103 editing font properties. The editor works natively with BDF fonts.
104 !EOF