]> Pileus Git - ~andy/gtk/commitdiff
Use g_get_charset() instead of g_get_codeset().
authorOwen Taylor <otaylor@redhat.com>
Mon, 3 Jul 2000 21:21:25 +0000 (21:21 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 3 Jul 2000 21:21:25 +0000 (21:21 +0000)
Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>

* gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
Use g_get_charset() instead of g_get_codeset().

* gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h:
Comment out some strdup'ing functions to keep timj
happy until we finish fighting this out.

12 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkfont-x11.c
gtk/gtkframe.c
gtk/gtkframe.h
gtk/gtklabel.h
gtk/gtktextmark.h

index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index 31fc47a1dd5ffe2a35845e8bae2f80ae721338f2..a5ca6f89b71f9ede7f648860bcf7f0661aa9608e 100644 (file)
@@ -1,3 +1,12 @@
+Mon Jul  3 17:08:14 2000  Owen Taylor  <otaylor@redhat.com>
+
+       * gdk/x11/gdkfont-x11.c (gdk_font_charset_for_locale):
+       Use g_get_charset() instead of g_get_codeset().
+
+       * gtk/gtkframe.[ch] gtkframe.h gtk/gtktextmark.h: 
+       Comment out some strdup'ing functions to keep timj
+       happy until we finish fighting this out.
+
 Mon Jul  3 14:24:16 2000  Owen Taylor  <otaylor@redhat.com>
 
        * gtk/gtkwidget.c (gtk_widget_draw): Ignore calls with
index a0fc46aebb94ef4d48425a4666d6c0e6ac3cb32a..cf65216542866cb7604eb70e8c59d0afdc74af36 100644 (file)
@@ -150,11 +150,14 @@ gdk_font_charset_for_locale ()
     { "ISO-8859-7", "iso8859-7" },
     { "ISO-8859-8", "iso8859-8" },
     { "ISO-8859-9", "iso8859-9" },
+    { "UTF-8", "iso8859-1" }
   };
 
-  char *codeset = g_get_codeset ();
+  char *codeset;
   char *result = NULL;
   int i;
+
+  g_get_charset (&codeset);
   
   for (i=0; i < G_N_ELEMENTS (charset_map); i++)
     if (strcmp (charset_map[i][0], codeset) == 0)
@@ -163,8 +166,6 @@ gdk_font_charset_for_locale ()
        break;
       }
 
-  g_free (codeset);
-
   if (result)
     return g_strdup (result);
   else
index f063b9356b7644f2f7bab388b8d4605e22660a01..55e491f25004f536be53edeadb0ae223d1dda870 100644 (file)
@@ -72,6 +72,12 @@ static void gtk_frame_real_compute_child_allocation (GtkFrame      *frame,
 static GtkBinClass *parent_class = NULL;
 
 
+/* Here until I convince timj about memory management behavior
+ */
+gchar *    gtk_frame_get_label        (GtkFrame      *frame);
+gchar *    gtk_label_get_text (GtkLabel         *label);
+
+
 GtkType
 gtk_frame_get_type (void)
 {
index caeb47bd510b4f1c911438947b3e23eb23db2546..ee0122c163e04a82ef255f7cb232d51fea161165 100644 (file)
@@ -72,7 +72,8 @@ GtkType    gtk_frame_get_type         (void);
 GtkWidget* gtk_frame_new              (const gchar   *label);
 void       gtk_frame_set_label        (GtkFrame      *frame,
                                       const gchar   *label);
-gchar *    gtk_frame_get_label        (GtkFrame      *frame);
+/* Temporarily commented out until memory management behavior is figured out */
+/* gchar *    gtk_frame_get_label        (GtkFrame      *frame); */
 void       gtk_frame_set_label_widget (GtkFrame      *frame,
                                       GtkWidget     *title_widget);
 void       gtk_frame_set_label_align  (GtkFrame      *frame,
index e6cf87a441e080fe91b70cbd3d3abd1c9deda8e4..e85703a0daf36bd1869bda1cfa00b687130691b4 100644 (file)
@@ -72,7 +72,7 @@ GtkType    gtk_label_get_type      (void);
 GtkWidget *gtk_label_new           (const char       *str);
 void       gtk_label_set_text      (GtkLabel         *label,
                                    const char       *str);
-gchar *    gtk_label_get_text      (GtkLabel         *label);
+/* Temporarily commented out until memory management behavior is figured out *//* gchar *    gtk_label_get_text      (GtkLabel         *label); */
 void       gtk_label_set_justify   (GtkLabel         *label,
                                    GtkJustification  jtype);
 void       gtk_label_set_pattern   (GtkLabel         *label,
index 0fa2f0dd521ef3465797d558261e7adc10037a0b..9079e11e4b4ac32715e2258569dc962e3e64e26e 100644 (file)
@@ -13,7 +13,8 @@ void gtk_text_mark_set_visible (GtkTextMark *mark,
                                  gboolean setting);
 
 gboolean gtk_text_mark_is_visible (GtkTextMark *mark);
-char *   gtk_text_mark_get_name   (GtkTextMark *mark);
+/* Temporarily commented out until memory management behavior is figured out */
+/* char *   gtk_text_mark_get_name   (GtkTextMark *mark); */
 
 #ifdef __cplusplus
 }