After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 515219 - gtkcombobox.c: ';;' is typo
gtkcombobox.c: ';;' is typo
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkComboBox
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2008-02-08 14:52 UTC by Kazuki Iwamoto
Modified: 2008-02-09 04:03 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Kazuki Iwamoto 2008-02-08 14:52:15 UTC
Please describe the problem:
There are two semicolons in gtk_combo_box_cell_layout_pack_start.
It is illegal syntax.

Steps to reproduce:
1. compile gtkcombobox.c.

Actual results:
Following messages are displayed.(Visual C++)
gtkcombobox.c(4071) : error C2143: syntax error : missing ';' before 'type'
gtkcombobox.c(4072) : error C2275: 'GtkComboBoxPrivate' : illegal use of this type as an expression
        gtkcombobox.h(38) : see declaration of 'GtkComboBoxPrivate'
gtkcombobox.c(4072) : error C2065: 'priv' : undeclared identifier gtkcombobox.c(4074) : error C4047: '=' : 'int' differs in levels of indirection from 'GtkComboBoxPrivate *'
gtkcombobox.c(4078) : error C2065: 'info' : undeclared identifier
gtkcombobox.c(4078) : error C4047: '=' : 'int' differs in levels of indirection from 'ComboCellInfo *'
gtkcombobox.c(4079) : error C2223: left of '->cell' must point to struct/union
gtkcombobox.c(4080) : error C2223: left of '->expand' must point to struct/union
gtkcombobox.c(4081) : error C2223: left of '->pack' must point to struct/union
gtkcombobox.c(4083) : error C2223: left of '->cells' must point to struct/union
gtkcombobox.c(4083) : error C2223: left of '->cells' must point to struct/union
gtkcombobox.c(4083) : error C4047: 'function' : 'GSList *' differs in levels of indirection from 'int'
gtkcombobox.c(4083) : error C2198: 'g_slist_append' : too few arguments for call
gtkcombobox.c(4085) : error C2223: left of '->cell_view' must point to struct/union
gtkcombobox.c(4086) : error C2223: left of '->cell_view' must point to struct/union
gtkcombobox.c(4086) : error C4047: 'function' : 'GTypeInstance *' differs in levels of indirection from 'GType'
gtkcombobox.c(4086) : error C2198: 'g_type_check_instance_cast' : too few arguments for call
gtkcombobox.c(4089) : error C2223: left of '->column' must point to struct/union
gtkcombobox.c(4090) : error C2223: left of '->column' must point to struct/union
gtkcombobox.c(4090) : error C4047: 'function' : 'GtkCellRenderer *' differs in levels of indirection from 'gboolean'
gtkcombobox.c(4090) : error C2198: 'gtk_tree_view_column_pack_start' : too few arguments for call
gtkcombobox.c(4092) : error C2223: left of '->popup_widget' must point to struct/union
gtkcombobox.c(4092) : error C4047: 'function' : 'GTypeInstance *' differs in levels of indirection from 'GType'
gtkcombobox.c(4092) : error C2198: 'g_type_check_instance_is_a' : too few arguments for call
gtkcombobox.c(4093) : error C2223: left of '->popup_widget' must point to struct/union
gtkcombobox.c(4093) : error C4047: 'function' : 'GtkCellRenderer *' differs in levels of indirection from 'gboolean'
gtkcombobox.c(4093) : error C2198: 'pack_start_recurse' : too few arguments for call

Expected results:
Delete one semicolon.

Does this happen every time?
Revision 19491

Other information:
Comment 1 Cody Russell 2008-02-09 04:03:35 UTC
2008-02-08  Cody Russell  <bratsche@gnome.org>

        * gtk/gtkcombobox.c (gtk_combo_box_cell_layout_pack_start):
        Removed an extra semicolon.  (#515219, reported by Kazuki IWAMOTO)