Previous behavior for Profile Panel's combobox size restored
See issue #3300 and #3446.
This commit is contained in:
@@ -273,7 +273,16 @@ public:
|
||||
*/
|
||||
class MyComboBox : public Gtk::ComboBox
|
||||
{
|
||||
int naturalWidth, minimumWidth;
|
||||
|
||||
bool on_scroll_event (GdkEventScroll* event);
|
||||
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
|
||||
void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const;
|
||||
|
||||
public:
|
||||
MyComboBox ();
|
||||
|
||||
void setPreferredWidth (int minimum_width, int natural_width);
|
||||
};
|
||||
|
||||
/**
|
||||
@@ -281,10 +290,16 @@ class MyComboBox : public Gtk::ComboBox
|
||||
*/
|
||||
class MyComboBoxText : public Gtk::ComboBoxText
|
||||
{
|
||||
int naturalWidth, minimumWidth;
|
||||
|
||||
bool on_scroll_event (GdkEventScroll* event);
|
||||
void get_preferred_width_vfunc (int &minimum_width, int &natural_width) const;
|
||||
void get_preferred_width_for_height_vfunc (int height, int &minimum_width, int &natural_width) const;
|
||||
|
||||
public:
|
||||
MyComboBoxText (bool has_entry = false);
|
||||
|
||||
void setPreferredWidth (int minimum_width, int natural_width);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user