diff options
author | Darin Adler <darin@src.gnome.org> | 2001-07-18 04:31:11 +0000 |
---|---|---|
committer | Darin Adler <darin@src.gnome.org> | 2001-07-18 04:31:11 +0000 |
commit | 03496763290dfdc11277e8ae8ef065e02b05f7bd (patch) | |
tree | 64a6fa803a13a5642b35906c94d76b0a3e3291d9 /gdk/x11 | |
parent | b0bb5ac3047f37ddf1a0a9b9c699cccb3b2a097f (diff) | |
download | gtk+-03496763290dfdc11277e8ae8ef065e02b05f7bd.tar.gz |
Ignore the sgml directory made by gtkdoc. Use gtk_window_set_resizable
* .cvsignore: Ignore the sgml directory made by gtkdoc.
* demos/pixbuf-demo.c: (main): Use gtk_window_set_resizable
instead of the deprecated gtk_window_set_policy.
* demos/testpixbuf-scale.c: Add missing <stdlib.h> include.
* gdk/gdkkeys.c: (gdk_keymap_class_init): Remove empty finalize
function to get rid of warning and some code too.
* gdk/x11/gdkfont-x11.c: (gdk_font_charset_for_locale): Add
missing const.
* gdk/x11/gdkmain-x11.c: (_gdk_windowing_init_check): Remove
unused local.
* gdk/x11/gdkpango-x11.c: (gdk_pango_context_get): Add missing
const.
* gdk/x11/gdkselection-x11.c: (gdk_text_property_to_utf8_list),
(gdk_utf8_to_compound_text): Add missing const.
* gtk/gtkimage.c: (gtk_image_expose): Remove unused local.
* gtk/gtkmenubar.c: (gtk_menu_bar_hierarchy_changed): Add missing
cast and get rid of an unnecessary one.
* gtk/gtksettings.c: (gtk_settings_notify): Remove unused local.
* gtk/gtkstatusbar.c: (gtk_statusbar_size_allocate): Remove unused
local.
* gtk/gtktreemodelsort.c: (gtk_tree_model_sort_build_level):
Remove unused local.
* modules/input/gtkimcontextxim.c: (gtk_im_context_xim_new): Add
missing const.
* tests/testsocket.c: (add_child): Add cast so the printf format
doesn't make us implicitly depend on what integer type
gtk_socket_get_id returns.
* tests/testtextbuffer.c: Add missing const.
* tests/testtreefocus.c: (main): Remove unused local.
* tests/treestoretest.c: (iter_remove): Remove unused local.
(uppercase_value): Remove unused function.
(make_window): Add statement to quiet the compiler's uninitialized
variable warning.
Diffstat (limited to 'gdk/x11')
-rw-r--r-- | gdk/x11/gdkfont-x11.c | 4 | ||||
-rw-r--r-- | gdk/x11/gdkmain-x11.c | 1 | ||||
-rw-r--r-- | gdk/x11/gdkpango-x11.c | 2 | ||||
-rw-r--r-- | gdk/x11/gdkselection-x11.c | 4 |
4 files changed, 5 insertions, 6 deletions
diff --git a/gdk/x11/gdkfont-x11.c b/gdk/x11/gdkfont-x11.c index 63de7162dd..1f4b76c1c7 100644 --- a/gdk/x11/gdkfont-x11.c +++ b/gdk/x11/gdkfont-x11.c @@ -137,7 +137,7 @@ gdk_font_load (const gchar *font_name) } static char * -gdk_font_charset_for_locale () +gdk_font_charset_for_locale (void) { static char *charset_map[][2] = { { "ANSI_X3.4-1968", "iso8859-1" }, @@ -154,7 +154,7 @@ gdk_font_charset_for_locale () { "UTF-8", "iso8859-1" } }; - char *codeset; + const char *codeset; char *result = NULL; int i; diff --git a/gdk/x11/gdkmain-x11.c b/gdk/x11/gdkmain-x11.c index 188c64cfa0..53c75e4d81 100644 --- a/gdk/x11/gdkmain-x11.c +++ b/gdk/x11/gdkmain-x11.c @@ -170,7 +170,6 @@ _gdk_windowing_init_check (int argc, char **argv) { gint xkb_major = XkbMajorVersion; gint xkb_minor = XkbMinorVersion; - gint xkb_event_type; if (XkbLibraryVersion (&xkb_major, &xkb_minor)) { xkb_major = XkbMajorVersion; diff --git a/gdk/x11/gdkpango-x11.c b/gdk/x11/gdkpango-x11.c index 09e44f4450..3900de59be 100644 --- a/gdk/x11/gdkpango-x11.c +++ b/gdk/x11/gdkpango-x11.c @@ -34,7 +34,7 @@ gdk_pango_context_get (void) static gint use_xft = -1; if (use_xft == -1) { - char *val = g_getenv ("GDK_USE_XFT"); + const char *val = g_getenv ("GDK_USE_XFT"); use_xft = val && (atoi (val) != 0); } diff --git a/gdk/x11/gdkselection-x11.c b/gdk/x11/gdkselection-x11.c index 8ca9389834..b52bf2f102 100644 --- a/gdk/x11/gdkselection-x11.c +++ b/gdk/x11/gdkselection-x11.c @@ -414,7 +414,7 @@ gdk_text_property_to_utf8_list (GdkAtom encoding, gchar **local_list; gint local_count; gint i; - gchar *charset = NULL; + const gchar *charset = NULL; gboolean need_conversion = !g_get_charset (&charset); gint count = 0; GError *error = NULL; @@ -598,7 +598,7 @@ gdk_utf8_to_compound_text (const gchar *str, gint *length) { gboolean need_conversion; - gchar *charset; + const gchar *charset; gchar *locale_str, *tmp_str; GError *error = NULL; gboolean result; |