diff --git a/ChangeLog b/ChangeLog index c1647af88..dbac3d933 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-01-25 John Luke + + * sample/CustomNotebook.cs: + * sample/CustomWidget.cs: use Widget.WidgetFlags prop to avoid + obsolete warning + 2005-01-25 Mike Kestner * gnome/About.custom : implement a subclassable ctor. diff --git a/sample/CustomNotebook.cs b/sample/CustomNotebook.cs index c0e2a5892..24b2a397f 100644 --- a/sample/CustomNotebook.cs +++ b/sample/CustomNotebook.cs @@ -263,7 +263,7 @@ class CustomNotebook : Container { tabHBorder = 2; tabVBorder = 2; - Flags |= (int)WidgetFlags.NoWindow; + WidgetFlags |= WidgetFlags.NoWindow; } public void AppendPage (Widget child, string label) @@ -422,7 +422,7 @@ class CustomNotebook : Container { protected override void OnRealized () { - Flags |= (int)WidgetFlags.Realized; + WidgetFlags |= WidgetFlags.Realized; GdkWindow = ParentWindow; Style = Style.Attach (GdkWindow); diff --git a/sample/CustomWidget.cs b/sample/CustomWidget.cs index fa71d06b6..bd974bb8f 100644 --- a/sample/CustomWidget.cs +++ b/sample/CustomWidget.cs @@ -54,7 +54,7 @@ class CustomWidget : Bin { layout = null; stockid = Stock.Execute; - Flags |= (int)WidgetFlags.NoWindow; + WidgetFlags |= WidgetFlags.NoWindow; } private Gdk.Pixbuf Icon { @@ -137,7 +137,7 @@ class CustomWidget : Bin { protected override void OnRealized () { - Flags |= (int)WidgetFlags.Realized; + WidgetFlags |= WidgetFlags.Realized; GdkWindow = ParentWindow; Style = Style.Attach (GdkWindow);