[gtk+] GtkAboutDialog: Fix a parameter check



commit 09a589b716c5b1e11a907cdd6652c7e9c64b465c
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 7 10:47:33 2014 -0400

    GtkAboutDialog: Fix a parameter check
    
    When we expanded the GtkLicense enumeration in 3.12, we forgot
    to update the limit check in gtk_about_dialog_set_license_type.
    Caught by testing property notification for enum properties.

 gtk/gtkaboutdialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index c0e048c..81aeda1 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2442,7 +2442,7 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
 
   g_return_if_fail (GTK_IS_ABOUT_DIALOG (about));
   g_return_if_fail (license_type >= GTK_LICENSE_UNKNOWN &&
-                    license_type <= GTK_LICENSE_ARTISTIC);
+                    license_type <= GTK_LICENSE_LGPL_3_0_ONLY);
 
   priv = about->priv;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]