[chronojump] New method PixbufFromVBox (used on RaceAnalyzer)
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] New method PixbufFromVBox (used on RaceAnalyzer)
- Date: Fri, 11 Feb 2022 11:51:31 +0000 (UTC)
commit 93a3a1184a126029c76b7640e9b08281238d5141
Author: Xavier de Blas <xaviblas gmail com>
Date: Fri Feb 11 12:51:13 2022 +0100
New method PixbufFromVBox (used on RaceAnalyzer)
src/utilGtk.cs | 7 +++++++
1 file changed, 7 insertions(+)
---
diff --git a/src/utilGtk.cs b/src/utilGtk.cs
index 58a5cc58e..48b9c6350 100644
--- a/src/utilGtk.cs
+++ b/src/utilGtk.cs
@@ -898,6 +898,13 @@ public class UtilGtk
return w.Allocation.Height;
}
+ public static Gdk.Pixbuf PixbufFromVBox (Gtk.VBox vbox)
+ {
+ return Gdk.Pixbuf.FromDrawable(vbox.GdkWindow, Gdk.Colormap.System,
+ vbox.Allocation.X, vbox.Allocation.Y, 0, 0,
+ WidgetWidth(vbox), WidgetHeight(vbox));
+ }
+
public static void IconWindow(Gtk.Window myWindow) {
Gdk.Pixbuf chronojumpIcon = new Gdk.Pixbuf (null, Constants.FileNameIcon);
myWindow.Icon = chronojumpIcon;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]