Author: rpmcruz
Date: Wed Oct 8 04:45:03 2008
New Revision: 51948
URL: http://svn.opensuse.org/viewcvs/yast?rev=51948&view=rev
Log:
* src/YGDialog.cc: bug fix 428965: enable setSize() code.
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGDialog.cc
trunk/gtk/src/YGUI.cc
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=51948&r1=51947&r2=51948&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Wed Oct 8 04:45:03 2008
@@ -23,6 +23,8 @@
* src/YGPackageSelector.cc: bug fix: ensure problem solver text is set as
normal or it may look grayed out.
+ * src/YGDialog.cc: bug fix 428965: enable setSize() code.
+
2008-10-06 Ricardo Cruz
* src/ygtkwizard.h/.c: collapse all button functions and accept button
Modified: trunk/gtk/src/YGDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGDialog.cc?rev=51948&r1=51947&r2=51948&view=diff
==============================================================================
--- trunk/gtk/src/YGDialog.cc (original)
+++ trunk/gtk/src/YGDialog.cc Wed Oct 8 04:45:03 2008
@@ -21,7 +21,7 @@
be a YGDialog and is swap-able.
*/
-#define DEFAULT_WIDTH 650
+#define DEFAULT_WIDTH 600
#define DEFAULT_HEIGHT 600
class YGWindow;
@@ -413,14 +413,12 @@
GtkWidget *window = m_window->getWidget();
if (GTK_WIDGET_REALIZED (window)) {
gtk_widget_queue_resize (window);
-#if 0
+#if 1
bool resize = false;
if (isMainDialog()) {
- width = MIN (0.95 * YUI::app()->displayWidth(), width);
- height = MIN (0.95 * YUI::app()->displayWidth(), width);
if (window->allocation.width < width || window->allocation.height < height) {
- width = MAX (width-100, window->allocation.width),
- height = MAX (height-60, window->allocation.height);
+ width = MAX (width, window->allocation.width),
+ height = MAX (height, window->allocation.height);
resize = true;
}
}
Modified: trunk/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=51948&r1=51947&r2=51948&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Wed Oct 8 04:45:03 2008
@@ -121,7 +121,7 @@
"--no-wm assume no window manager is running\n"
"--noborder no window manager border for main dialogs\n"
"--fullscreen use full screen for main dialogs\n"
- "--geomtry WxH sets a default size of W per H to main dialogs\n"
+// "--geomtry WxH sets a default size of W per H to main dialogs\n"
"--nothreads run without additional UI threads\n"
"--help prints this help text\n"
"\n"
@@ -573,8 +573,8 @@
// YCP uses defaultWidth/Height() to use their smaller YWizard impl, so we fool
// them since we want to use a smaller default size than qt
-int YGApplication::defaultWidth() { return 1000; }
-int YGApplication::defaultHeight() { return 1000; }
+int YGApplication::defaultWidth() { return 800; }
+int YGApplication::defaultHeight() { return 600; }
YWidgetFactory *YGUI::createWidgetFactory()
{ return new YGWidgetFactory; }
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org