]> Pileus Git - ~andy/gtk/commitdiff
remove unused gdk_font_charset_for_locale() function.
authorManish Singh <yosh@gimp.org>
Thu, 26 Aug 2004 00:23:46 +0000 (00:23 +0000)
committerManish Singh <yosh@src.gnome.org>
Thu, 26 Aug 2004 00:23:46 +0000 (00:23 +0000)
Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>

        * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
        function.

        * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
        variables num_extensions and extensions.

        * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/x11/gdkfont-x11.c
gdk/x11/gdkinput-x11.c
gtk/gtkhsv.c

index d3b1476d51e07edbb570cfce8740212026a40b9e..5d6aaa50b29d42eb326af78db510290db0c7184b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>
+
+       * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
+       function.
+
+       * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
+       variables num_extensions and extensions.
+
+       * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
+
 Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
index d3b1476d51e07edbb570cfce8740212026a40b9e..5d6aaa50b29d42eb326af78db510290db0c7184b 100644 (file)
@@ -1,3 +1,13 @@
+Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>
+
+       * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
+       function.
+
+       * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
+       variables num_extensions and extensions.
+
+       * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
+
 Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
index d3b1476d51e07edbb570cfce8740212026a40b9e..5d6aaa50b29d42eb326af78db510290db0c7184b 100644 (file)
@@ -1,3 +1,13 @@
+Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>
+
+       * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
+       function.
+
+       * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
+       variables num_extensions and extensions.
+
+       * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
+
 Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
index d3b1476d51e07edbb570cfce8740212026a40b9e..5d6aaa50b29d42eb326af78db510290db0c7184b 100644 (file)
@@ -1,3 +1,13 @@
+Wed Aug 25 17:24:17 2004  Manish Singh  <yosh@gimp.org>
+
+       * gdk/x11/gdkfont-x11.c: remove unused gdk_font_charset_for_locale()
+       function.
+
+       * gdk/x11/gdkinput-x11.c (_gdk_input_common_init): remove unused
+       variables num_extensions and extensions.
+
+       * gtk/gtkhsv.c: remove unused gtk_hsv_get_focus_gc() function.
+
 Wed Aug 25 17:14:58 2004  Manish Singh  <yosh@gimp.org>
 
        * gtk/gtktreeview.c (gtk_tree_view_search_activate): initialize
index 023190ec781a7f1bbf7ecffe454fdba7296b27a1..e7ea781a1e440adadd349fc027d5ea3979dc0674 100644 (file)
@@ -228,43 +228,6 @@ gdk_font_load_for_display (GdkDisplay  *display,
   return font;
 }
 
-static char *
-gdk_font_charset_for_locale (void)
-{
-  static char *charset_map[][2] = {
-    { "ANSI_X3.4-1968", "iso8859-1" },
-    { "US-ASCII",   "iso8859-1" },
-    { "ISO-8859-1", "iso8859-1" },
-    { "ISO-8859-2", "iso8859-2" },
-    { "ISO-8859-3", "iso8859-3" },
-    { "ISO-8859-4", "iso8859-4" },
-    { "ISO-8859-5", "iso8859-5" },
-    { "ISO-8859-6", "iso8859-6" },
-    { "ISO-8859-7", "iso8859-7" },
-    { "ISO-8859-8", "iso8859-8" },
-    { "ISO-8859-9", "iso8859-9" },
-    { "UTF-8",      "iso8859-1" }
-  };
-
-  const 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)
-      {
-       result = charset_map[i][1];
-       break;
-      }
-
-  if (result)
-    return g_strdup (result);
-  else
-    return g_strdup ("iso8859-1");
-}
-
 /**
  * gdk_font_from_description_for_display:
  * @display: a #GdkDisplay
index 47d4ae2955805e80b1dda07cbd5ee705ba583e5a..441c89a3af2ee833c26aadc2f40a2df7948f001a 100644 (file)
@@ -383,10 +383,8 @@ gint
 _gdk_input_common_init (GdkDisplay *display,
                        gint        include_core)
 {
-  char **extensions;
   XDeviceInfo   *devices;
-  int num_devices;
-  int num_extensions, loop;
+  int num_devices, loop;
   int ignore, event_base;
   GdkDisplayX11 *display_x11 = GDK_DISPLAY_X11 (display);
 
index 5574268c13bd8f4e9a85d79766cd32df2185e9b5..fd812db0d01729de5da7833c918434c1e1146ae4 100644 (file)
@@ -110,8 +110,6 @@ static gboolean gtk_hsv_focus          (GtkWidget        *widget,
                                        GtkDirectionType  direction);
 static void     gtk_hsv_move           (GtkHSV           *hsv,
                                        GtkDirectionType  dir);
-static GdkGC *  gtk_hsv_get_focus_gc   (GtkHSV           *hsv,
-                                       gint             *line_width);
 
 static guint hsv_signals[LAST_SIGNAL];
 static GtkWidgetClass *parent_class;
@@ -1778,30 +1776,3 @@ gtk_hsv_move (GtkHSV          *hsv,
   
   gtk_hsv_set_color (hsv, hue, sat, val);
 }
-
-static GdkGC *
-gtk_hsv_get_focus_gc (GtkHSV *hsv,
-                     gint   *line_width)
-{
-  GdkGC *focus_gc;
-  GtkWidget *widget = GTK_WIDGET (hsv);
-  gint8 *dash_list;
-  
-  focus_gc = gdk_gc_new (widget->window);
-  gdk_gc_copy (focus_gc, widget->style->fg_gc[GTK_WIDGET_STATE (widget)]);
-
-  gtk_widget_style_get (widget,
-                       "focus-line-width", line_width,
-                       "focus-line-pattern", (gchar *)&dash_list,
-                       NULL);
-  
-  gdk_gc_set_line_attributes (focus_gc, *line_width,
-                             dash_list[0] ? GDK_LINE_ON_OFF_DASH : GDK_LINE_SOLID,
-                             GDK_CAP_BUTT, GDK_JOIN_MITER);
-  if (dash_list[0])
-    gdk_gc_set_dashes (focus_gc, 0, dash_list, strlen (dash_list));
-
-  g_free (dash_list);
-  
-  return focus_gc;
-}