Bug #54844 set_opacity calls in library/form/gtk incompatible with gtk 2.10 on RHEL5
Submitted: 28 Jun 2010 5:34 Modified: 28 Jul 2010 14:31
Reporter: Brett Trotter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.24 rc OS:Linux
Assigned to: Alfredo Kojima CPU Architecture:Any

[28 Jun 2010 5:34] Brett Trotter
Description:
the set_opacity calls in library/form/gtk/src/lf_utilities.cpp (line 661) and library/forms/gtk/src/lf_popup.cpp (line 64) won't compile on RHEL 5 due to gtk 2.10.

How to repeat:
compile on RHEL 5 / CentOS 5

Suggested fix:
Suggest putting #ifdefs or other means to skip those calls when compiling on gtk 2.10.
[28 Jun 2010 5:42] Brett Trotter
set_tooltip_text is also invalid. 

overview_panel.cpp:    btn->set_tooltip_text(tooltip);
overview_panel.cpp:        btn->set_tooltip_text(_("View items as large icons"));
overview_panel.cpp:        btn->set_tooltip_text(_("View items as small icons"));
overview_panel.cpp:        btn->set_tooltip_text(_("View items as a list"));
overview_panel.cpp:    //      btn->set_tooltip_text(_("Add new item"));
overview_panel.cpp:    //      btn->set_tooltip_text(_("Delete selected item"));
query_sidebar.cpp:    combo->set_tooltip_text("Default schema for queries to be executed against");
[28 Jun 2010 5:44] Brett Trotter
correction to last- only the call query_sidebar is not wrapped with

#if GTK_VERSION_GT(2,10)

solution is to wrap the query_sidebar call
[6 Jul 2010 15:22] Alfredo Kojima
Changes applied, thanks for the bug report.
[6 Jul 2010 23:50] Brett Trotter
sorry it was a bit messy- but glad I could help!
[27 Jul 2010 11:49] Johannes Taxacher
changes confirmed in repository
[28 Jul 2010 14:31] Tony Bedford
An entry has been added to the 5.2.26 changelog:

MySQL Workbench would not compile on RHEL 5. This was due to the calls to the function set_opacity in library/form/gtk/src/lf_utilities.cpp (line 661) and library/forms/gtk/src/lf_popup.cpp (line 64). The set_opacity function was not available in GTK 2.10.