Details

[Home]

Issue of the Implementation # D0149

Brief

Incorrect default value of 'max-position' property of GtkPaned objects

Detailed Description

The default value of the property 'max-position' should be 2147483647, but it is 0.

Problem location(s) in the standard

Linux Standard Base Desktop Specification 4.0, Chapter 16. Libraries. Section 16.27. Interfaces for libgtk-x11-2.0 that refers http://library.gnome.org/devel/gtk/2.8/GtkPaned.html

Example

#include <gtk/gtk.h>
#include <glib.h>
#include <stdio.h>

int main (int argc, char **argv)
{
	GtkWidget *h_paned = NULL;
	gint get_val;
	
	gtk_init(&argc, &argv);
	
	h_paned = gtk_hpaned_new();
	if(h_paned == NULL)
	{
		printf("The gtk_hpaned_new function returns NULL, unable to create a GtkWidget.\n");
	}
	
	g_object_get(h_paned, "max-position", &get_val, NULL);
	
	if(get_val != 2147483647)
	{
		printf("The default value of the property 'max-position' should be 2147483647, but it is %d.\n", get_val);
	}	

	if(h_paned != NULL)
	{
		gtk_widget_destroy(h_paned);
	}
	
	return 0;
}

Component

gtk+ 2.19 or earlier

Accepted

Gnome Bugzilla, 608865

Status

Fixed in CVS

[Home]