Commit 65269888 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Fix for binary compatibility across 2.x.y.

	* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
	across 2.x.y.
parent 73df4564
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
2002-08-04 Matthias Clasen <maclas@gmx.de>
* gtk/gtkmain.c (gtk_check_version): Fix for binary compatibility
across 2.x.y.
Fri Aug 2 18:00:46 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkmenu.c: Fix menus resizing dynamically while
......
......@@ -177,17 +177,16 @@ gtk_check_version (guint required_major,
guint required_minor,
guint required_micro)
{
gint gtk_effective_micro = 100 * GTK_MINOR_VERSION + GTK_MICRO_VERSION;
gint required_effective_micro = 100 * required_minor + required_micro;
if (required_major > GTK_MAJOR_VERSION)
return "Gtk+ version too old (major mismatch)";
if (required_major < GTK_MAJOR_VERSION)
return "Gtk+ version too new (major mismatch)";
if (required_minor > GTK_MINOR_VERSION)
return "Gtk+ version too old (minor mismatch)";
if (required_minor < GTK_MINOR_VERSION)
return "Gtk+ version too new (minor mismatch)";
if (required_micro < GTK_MICRO_VERSION - GTK_BINARY_AGE)
if (required_effective_micro < gtk_effective_micro - GTK_BINARY_AGE)
return "Gtk+ version too new (micro mismatch)";
if (required_micro > GTK_MICRO_VERSION)
if (required_effective_micro > gtk_effective_micro)
return "Gtk+ version too old (micro mismatch)";
return NULL;
}
......
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