/[svn]/gigedit/trunk/src/gigedit/wrapLabel.cc
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/wrapLabel.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 3363 by schoenebeck, Wed May 17 12:28:39 2017 UTC revision 3364 by schoenebeck, Tue Nov 14 18:07:25 2017 UTC
# Line 22  Line 22 
22   * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.   * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23   * *************************************************************************/   * *************************************************************************/
24    
25  #include <wrapLabel.hh>  #include "wrapLabel.hh"
26    #ifdef PANGOMM_HEADER_FILE
27    # include PANGOMM_HEADER_FILE(pangomm.h)
28    # include PANGOMM_HEADER_FILE(pangommconfig.h)
29    #else
30    # include <pangomm/pangomm.h>
31    # include <pangommconfig.h>
32    #endif
33    
34    // we don't need this WrapLabel helper class on GTKMM 3 and higher
35    #if GTKMM_MAJOR_VERSION < 3
36    
37  /*  /*
38   * wrapLabel.cc --   * wrapLabel.cc --
# Line 55  WrapLabel::WrapLabel(const Glib::ustring Line 64  WrapLabel::WrapLabel(const Glib::ustring
64     : mWrapWidth(0),     : mWrapWidth(0),
65       mWrapHeight(0)       mWrapHeight(0)
66  {  {
67       // pangomm >= 2.35.1
68    #if PANGOMM_MAJOR_VERSION > 2 || (PANGOMM_MAJOR_VERSION == 2 && (PANGOMM_MINOR_VERSION > 35 || (PANGOMM_MINOR_VERSION == 35 && PANGOMM_MICRO_VERSION >= 1)))
69       get_layout()->set_wrap(Pango::WrapMode::WORD_CHAR);
70    #else
71     get_layout()->set_wrap(Pango::WRAP_WORD_CHAR);     get_layout()->set_wrap(Pango::WRAP_WORD_CHAR);
72    #endif
73     set_alignment(0.0, 0.0);     set_alignment(0.0, 0.0);
74     set_text(text);     set_text(text);
75  }  }
# Line 211  WrapLabel::SetWrapWidth(int width) // IN Line 225  WrapLabel::SetWrapWidth(int width) // IN
225    
226    
227  }; /* namespace view */  }; /* namespace view */
228    
229    #endif // GTKMM_MAJOR_VERSION < 3

Legend:
Removed from v.3363  
changed lines
  Added in v.3364

  ViewVC Help
Powered by ViewVC