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

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

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

revision 2169 by persson, Sun Mar 6 07:51:04 2011 UTC revision 3735 by schoenebeck, Sat Feb 1 19:28:43 2020 UTC
# Line 30  Line 30 
30    
31  namespace view {  namespace view {
32    
33    /** @brief Multi-line label for gtk(mm) <= 2.
34     *
35     * This class is only used for gtk(mm) <= 2. If application is compiled against
36     * gtk(mm) >= 3 then this class is not compiled at all. gtk(mm) 3 added support
37     * for automatic multi-line labels by calling its set_line_wrap() method.
38     * However Gtk::Label may still cause size calculation problems under certain
39     * conditions. If you encountered such a problem, then use @c MultiLineLabel for
40     * for gtk(mm) >= 3 instead.
41     *
42     * @see MultiLineLabel for gtk(mm) >= 3
43     */
44  class WrapLabel  class WrapLabel
45     : public Gtk::Label     : public Gtk::Label
46  {  {
# Line 44  protected: Line 54  protected:
54     virtual void on_size_allocate(Gtk::Allocation &alloc);     virtual void on_size_allocate(Gtk::Allocation &alloc);
55     virtual void on_size_request(Gtk::Requisition *req);     virtual void on_size_request(Gtk::Requisition *req);
56    
    // Gigedit addtion: gtk 3 compatibility  
    virtual void get_preferred_width_vfunc(int& minimum_width, int& natural_width) const;  
    virtual void get_preferred_height_vfunc(int& minimum_height, int& natural_height) const;  
   
57  private:  private:
58     void SetWrapWidth(int width);     void SetWrapWidth(int width);
59    

Legend:
Removed from v.2169  
changed lines
  Added in v.3735

  ViewVC Help
Powered by ViewVC