Hello community, here is the log from the commit of package ggreeter checked in at Mon Sep 24 18:53:39 CEST 2007. -------- --- GNOME/ggreeter/ggreeter.changes 2007-09-21 09:34:07.000000000 +0200 +++ /mounts/work_src_done/STABLE/STABLE/ggreeter/ggreeter.changes 2007-09-24 10:11:15.529800000 +0200 @@ -1,0 +2,7 @@ +Mon Sep 24 10:09:52 CEST 2007 - lewing@suse.de + +- Fix font/window size issues. Fixes bnc #bnc327414 + +- Update translations. Fixes bnc #326810 + +------------------------------------------------------------------- New: ---- ggreeter-bnc326810.patch ggreeter-bnc327414.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ ggreeter.spec ++++++ --- /var/tmp/diff_new_pack.N21505/_old 2007-09-24 18:53:29.000000000 +0200 +++ /var/tmp/diff_new_pack.N21505/_new 2007-09-24 18:53:29.000000000 +0200 @@ -11,7 +11,7 @@ Name: ggreeter Version: 0.1 -Release: 24 +Release: 28 License: GPL v2 or later BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: docbook_4 gconf-sharp2 glade-sharp2 glib-sharp2 gnome-doc-utils-devel gtkhtml-sharp2 intltool libgnomeui-devel mono-devel @@ -20,6 +20,8 @@ Patch: %{name}-bnc305604.patch Patch1: %{name}-bnc304737.patch Patch2: fix-url-typo.diff +Patch3: %{name}-bnc327414.patch +Patch4: %{name}-bnc326810.patch Group: System/GUI/GNOME Summary: Greeter Application @@ -37,6 +39,8 @@ %patch -p1 %patch1 -p1 %patch2 +%patch3 -p1 +%patch4 -p1 %build autoreconf -f -i @@ -59,6 +63,9 @@ %{_datadir}/gnome/autostart/ggreeter.desktop %{_datadir}/locale/*/LC_MESSAGES/ggreeter.mo %changelog +* Mon Sep 24 2007 - lewing@suse.de +- Fix font/window size issues. Fixes bnc #bnc327414 +- Update translations. Fixes bnc #326810 * Fri Sep 21 2007 - stbinner@suse.de - fix typo in software.opensuse.org url * Mon Sep 03 2007 - lewing@suse.de ++++++ ggreeter-bnc326810.patch ++++++ ++++ 1221 lines (skipped) ++++++ ggreeter-bnc327414.patch ++++++ diff --git a/src/Greeter.cs b/src/Greeter.cs index 0492a13..81ac8d1 100644 --- a/src/Greeter.cs +++ b/src/Greeter.cs @@ -21,8 +21,10 @@ namespace Greeter { public class Presenter : Window { private static GConf.Client client; private HTML html; + private ScrolledWindow scroll; private const string FirstRun = "/apps/ggreeter/firstrun/10.3"; - + private static Gdk.Rectangle MaxGeom = new Gdk.Rectangle (0, 0, 800, 600); + private int zoom_steps = 6; public static void Main (string [] args) { @@ -51,6 +53,25 @@ namespace Greeter { } } + protected override void OnRealized () + { + base.OnRealized (); + + int monitor = GdkWindow.Screen.GetMonitorAtWindow (GdkWindow); + Gdk.Rectangle geom = GdkWindow.Screen.GetMonitorGeometry (monitor); + + if (geom.Width < MaxGeom.Width || geom.Height < MaxGeom.Height) + SetSizeRequest (geom.Width - 50, geom.Height - 50); + } + + protected override bool OnExposeEvent (Gdk.EventExpose args) + { + if (scroll.HScrollbar.Visible || scroll.VScrollbar.Visible && zoom_steps-- > 0) + html.ZoomOut (); + + return base.OnExposeEvent (args); + } + public Presenter () : base ("") { Decorated = false; @@ -62,8 +83,11 @@ namespace Greeter { html = new Gtk.HTML (); html.LinkClicked += HandleLinkClicked; html.UrlRequested += HandleUrlRequested; - html.SetUsize (800,600); + + SetSizeRequest (MaxGeom.Width, MaxGeom.Height); + html.ZoomIn (); + Gtk.HTMLStream hstream = html.Begin (null, "text/html; charset=utf-8", Gtk.HTMLBeginFlags.Scroll); using (Stream header = Open ("greet_header.html")) @@ -78,7 +102,9 @@ namespace Greeter { hstream.Close (Gtk.HTMLStreamStatus.Ok); - this.Add (html); + scroll = new ScrolledWindow (); + scroll.Add (html); + this.Add (scroll); ShowAll (); } ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org