Commit 03496763 authored by Darin Adler's avatar Darin Adler

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.
parent b0bb5ac3
...@@ -31,3 +31,4 @@ gdk-pixbuf-2.0-uninstalled.pc ...@@ -31,3 +31,4 @@ gdk-pixbuf-2.0-uninstalled.pc
missing missing
install-sh install-sh
mkinstalldirs mkinstalldirs
sgml
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
2001-07-17 Darin Adler <darin@bentspoon.com>
* .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.
Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org> Sat Jul 14 12:47:35 2001 Tim Janik <timj@gtk.org>
* gtk/gtkrange.c: * gtk/gtkrange.c:
......
...@@ -213,7 +213,7 @@ main (int argc, char **argv) ...@@ -213,7 +213,7 @@ main (int argc, char **argv)
window = gtk_window_new (GTK_WINDOW_TOPLEVEL); window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_widget_set_usize (window, back_width, back_height); gtk_widget_set_usize (window, back_width, back_height);
gtk_window_set_policy (GTK_WINDOW (window), FALSE, FALSE, FALSE); gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
gtk_signal_connect (GTK_OBJECT (window), "destroy", gtk_signal_connect (GTK_OBJECT (window), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL); GTK_SIGNAL_FUNC (destroy_cb), NULL);
......
#include <gtk/gtk.h> #include <gtk/gtk.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h>
GdkInterpType interp_type = GDK_INTERP_BILINEAR; GdkInterpType interp_type = GDK_INTERP_BILINEAR;
int overall_alpha = 255; int overall_alpha = 255;
......
...@@ -34,7 +34,6 @@ enum { ...@@ -34,7 +34,6 @@ enum {
static void gdk_keymap_init (GdkKeymap *keymap); static void gdk_keymap_init (GdkKeymap *keymap);
static void gdk_keymap_class_init (GdkKeymapClass *klass); static void gdk_keymap_class_init (GdkKeymapClass *klass);
static void gdk_keymap_finalize (GObject *object);
static gpointer parent_class = NULL; static gpointer parent_class = NULL;
...@@ -81,8 +80,6 @@ gdk_keymap_class_init (GdkKeymapClass *klass) ...@@ -81,8 +80,6 @@ gdk_keymap_class_init (GdkKeymapClass *klass)
parent_class = g_type_class_peek_parent (klass); parent_class = g_type_class_peek_parent (klass);
object_class->finalize = gdk_keymap_finalize;
signals[DIRECTION_CHANGED] = signals[DIRECTION_CHANGED] =
g_signal_new ("direction_changed", g_signal_new ("direction_changed",
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
...@@ -94,16 +91,6 @@ gdk_keymap_class_init (GdkKeymapClass *klass) ...@@ -94,16 +91,6 @@ gdk_keymap_class_init (GdkKeymapClass *klass)
0); 0);
} }
static void
gdk_keymap_finalize (GObject *object)
{
GdkKeymap *keymap = GDK_KEYMAP (object);
G_OBJECT_CLASS (parent_class)->finalize (object);
}
/* Other key-handling stuff /* Other key-handling stuff
*/ */
......
...@@ -137,7 +137,7 @@ gdk_font_load (const gchar *font_name) ...@@ -137,7 +137,7 @@ gdk_font_load (const gchar *font_name)
} }
static char * static char *
gdk_font_charset_for_locale () gdk_font_charset_for_locale (void)
{ {
static char *charset_map[][2] = { static char *charset_map[][2] = {
{ "ANSI_X3.4-1968", "iso8859-1" }, { "ANSI_X3.4-1968", "iso8859-1" },
...@@ -154,7 +154,7 @@ gdk_font_charset_for_locale () ...@@ -154,7 +154,7 @@ gdk_font_charset_for_locale ()
{ "UTF-8", "iso8859-1" } { "UTF-8", "iso8859-1" }
}; };
char *codeset; const char *codeset;
char *result = NULL; char *result = NULL;
int i; int i;
......
...@@ -170,7 +170,6 @@ _gdk_windowing_init_check (int argc, char **argv) ...@@ -170,7 +170,6 @@ _gdk_windowing_init_check (int argc, char **argv)
{ {
gint xkb_major = XkbMajorVersion; gint xkb_major = XkbMajorVersion;
gint xkb_minor = XkbMinorVersion; gint xkb_minor = XkbMinorVersion;
gint xkb_event_type;
if (XkbLibraryVersion (&xkb_major, &xkb_minor)) if (XkbLibraryVersion (&xkb_major, &xkb_minor))
{ {
xkb_major = XkbMajorVersion; xkb_major = XkbMajorVersion;
......
...@@ -34,7 +34,7 @@ gdk_pango_context_get (void) ...@@ -34,7 +34,7 @@ gdk_pango_context_get (void)
static gint use_xft = -1; static gint use_xft = -1;
if (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); use_xft = val && (atoi (val) != 0);
} }
......
...@@ -414,7 +414,7 @@ gdk_text_property_to_utf8_list (GdkAtom encoding, ...@@ -414,7 +414,7 @@ gdk_text_property_to_utf8_list (GdkAtom encoding,
gchar **local_list; gchar **local_list;
gint local_count; gint local_count;
gint i; gint i;
gchar *charset = NULL; const gchar *charset = NULL;
gboolean need_conversion = !g_get_charset (&charset); gboolean need_conversion = !g_get_charset (&charset);
gint count = 0; gint count = 0;
GError *error = NULL; GError *error = NULL;
...@@ -598,7 +598,7 @@ gdk_utf8_to_compound_text (const gchar *str, ...@@ -598,7 +598,7 @@ gdk_utf8_to_compound_text (const gchar *str,
gint *length) gint *length)
{ {
gboolean need_conversion; gboolean need_conversion;
gchar *charset; const gchar *charset;
gchar *locale_str, *tmp_str; gchar *locale_str, *tmp_str;
GError *error = NULL; GError *error = NULL;
gboolean result; gboolean result;
......
...@@ -874,7 +874,7 @@ gtk_image_expose (GtkWidget *widget, ...@@ -874,7 +874,7 @@ gtk_image_expose (GtkWidget *widget,
{ {
GtkImage *image; GtkImage *image;
GtkMisc *misc; GtkMisc *misc;
GdkRectangle area, image_bound, intersection; GdkRectangle area, image_bound;
gint x, y; gint x, y;
GdkBitmap *mask = NULL; GdkBitmap *mask = NULL;
GdkPixbuf *stock_pixbuf = NULL; GdkPixbuf *stock_pixbuf = NULL;
......
...@@ -484,7 +484,7 @@ gtk_menu_bar_hierarchy_changed (GtkWidget *widget, ...@@ -484,7 +484,7 @@ gtk_menu_bar_hierarchy_changed (GtkWidget *widget,
toplevel = gtk_widget_get_toplevel (widget); toplevel = gtk_widget_get_toplevel (widget);
if (old_toplevel) if (old_toplevel)
remove_from_window (old_toplevel, GTK_MENU_BAR (menubar)); remove_from_window (GTK_WINDOW (old_toplevel), menubar);
if (GTK_WIDGET_TOPLEVEL (toplevel)) if (GTK_WIDGET_TOPLEVEL (toplevel))
add_to_window (GTK_WINDOW (toplevel), menubar); add_to_window (GTK_WINDOW (toplevel), menubar);
......
...@@ -314,7 +314,6 @@ gtk_settings_notify (GObject *object, ...@@ -314,7 +314,6 @@ gtk_settings_notify (GObject *object,
{ {
guint property_id = pspec->param_id; guint property_id = pspec->param_id;
gint double_click_time; gint double_click_time;
gchar *str_value;
#if 1 #if 1
GValue tmp_value = { 0, }; GValue tmp_value = { 0, };
......
...@@ -643,7 +643,6 @@ gtk_statusbar_size_allocate (GtkWidget *widget, ...@@ -643,7 +643,6 @@ gtk_statusbar_size_allocate (GtkWidget *widget,
if (statusbar->has_resize_grip) if (statusbar->has_resize_grip)
{ {
GdkRectangle rect; GdkRectangle rect;
GtkAllocation hbox_allocation;
GtkRequisition saved_req; GtkRequisition saved_req;
widget->allocation = *allocation; /* get_grip_rect needs this info */ widget->allocation = *allocation; /* get_grip_rect needs this info */
......
...@@ -1129,7 +1129,6 @@ gtk_tree_model_sort_build_level (GtkTreeModelSort *tree_model_sort, ...@@ -1129,7 +1129,6 @@ gtk_tree_model_sort_build_level (GtkTreeModelSort *tree_model_sort,
GtkTreeIter *parent_iter = NULL; GtkTreeIter *parent_iter = NULL;
GtkTreeIter iter; GtkTreeIter iter;
SortElt elt; SortElt elt;
SortData sort_data;
if (place) if (place)
parent_iter = & (place->iter); parent_iter = & (place->iter);
......
...@@ -258,7 +258,7 @@ gtk_im_context_xim_new (void) ...@@ -258,7 +258,7 @@ gtk_im_context_xim_new (void)
{ {
GtkXIMInfo *info; GtkXIMInfo *info;
GtkIMContextXIM *result; GtkIMContextXIM *result;
gchar *charset; const gchar *charset;
info = get_im (setlocale (LC_CTYPE, NULL)); info = get_im (setlocale (LC_CTYPE, NULL));
if (!info) if (!info)
......
...@@ -206,7 +206,7 @@ add_child (GtkWidget *window, ...@@ -206,7 +206,7 @@ add_child (GtkWidget *window,
socket = create_socket (); socket = create_socket ();
gtk_box_pack_start (GTK_BOX (vbox), socket->box, TRUE, TRUE, 0); gtk_box_pack_start (GTK_BOX (vbox), socket->box, TRUE, TRUE, 0);
gtk_widget_show (socket->box); gtk_widget_show (socket->box);
sprintf(buffer, "%#lx", gtk_socket_get_id (GTK_SOCKET (socket->socket))); sprintf(buffer, "%#lx", (gulong) gtk_socket_get_id (GTK_SOCKET (socket->socket)));
argv[1] = buffer; argv[1] = buffer;
} }
......
...@@ -551,7 +551,7 @@ run_tests (GtkTextBuffer *buffer) ...@@ -551,7 +551,7 @@ run_tests (GtkTextBuffer *buffer)
} }
static char *book_closed_xpm[] = { static const char *book_closed_xpm[] = {
"16 16 6 1", "16 16 6 1",
" c None s None", " c None s None",
". c black", ". c black",
......
...@@ -309,7 +309,6 @@ main (int argc, char *argv[]) ...@@ -309,7 +309,6 @@ main (int argc, char *argv[])
GtkCellRenderer *renderer; GtkCellRenderer *renderer;
gint col_offset; gint col_offset;
GtkTreeViewColumn *column; GtkTreeViewColumn *column;
GtkTreeSelection *selection;
gtk_init (&argc, &argv); gtk_init (&argc, &argv);
......
...@@ -38,7 +38,6 @@ static void ...@@ -38,7 +38,6 @@ static void
iter_remove (GtkWidget *button, GtkTreeView *tree_view) iter_remove (GtkWidget *button, GtkTreeView *tree_view)
{ {
GtkTreeIter selected; GtkTreeIter selected;
GtkTreeIter s_selected;
GtkTreeModel *model; GtkTreeModel *model;
model = gtk_tree_view_get_model (tree_view); model = gtk_tree_view_get_model (tree_view);
...@@ -200,19 +199,6 @@ iter_append (GtkWidget *button, GtkTreeView *tree_view) ...@@ -200,19 +199,6 @@ iter_append (GtkWidget *button, GtkTreeView *tree_view)
} }
} }
static void
uppercase_value (const GValue *src, GValue *dest, gpointer data)
{
gchar *str;
g_value_init (dest, G_TYPE_STRING);
str = g_strdup (g_value_get_string (src));
if (str)
g_strup (str);
g_value_set_string (dest, str);
g_free (str);
}
static void static void
make_window (gint view_type) make_window (gint view_type)
{ {
...@@ -257,6 +243,7 @@ make_window (gint view_type) ...@@ -257,6 +243,7 @@ make_window (gint view_type)
break; break;
default: default:
g_assert_not_reached (); g_assert_not_reached ();
tree_view = NULL; /* Quiet compiler */
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment