Author: rpmcruz
Date: Mon May 26 19:58:39 2008
New Revision: 47894
URL: http://svn.opensuse.org/viewcvs/yast?rev=47894&view=rev
Log:
* src/YGTextView.cc, src/YGUI.cc & src/ygtkwizard.c: changed
gdk_beep() to the new GTK gtk_widget_error_bell() call. This one
will use the visual bell if setup at the "Sound" module from the
Gnome control center.
* src/YGDialog.cc: don't re-use the cursor -- possible fix for
bug 393143?
Modified:
trunk/gtk/ChangeLog
trunk/gtk/src/YGDialog.cc
trunk/gtk/src/YGTextView.cc
trunk/gtk/src/YGUI.cc
trunk/gtk/src/ygtkwizard.c
Modified: trunk/gtk/ChangeLog
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/ChangeLog?rev=47894&r1=47893&r2=47894&view=diff
==============================================================================
--- trunk/gtk/ChangeLog (original)
+++ trunk/gtk/ChangeLog Mon May 26 19:58:39 2008
@@ -1,4 +1,14 @@
-2008-05-23 Michael Meeks
+2008-05-26 Ricardo Cruz
+
+ * src/YGTextView.cc, src/YGUI.cc & src/ygtkwizard.c: changed
+ gdk_beep() to the new GTK gtk_widget_error_bell() call. This one
+ will use the visual bell if setup at the "Sound" module from the
+ Gnome control center.
+
+ * src/YGDialog.cc: don't re-use the cursor -- possible fix for
+ bug 393143?
+
+2008-05-23 Ricardo Cruz
* src/YGPackageSelector (PackageControl): regresses to the old
buttons code until r47296. This aligns them vertically: wether
Modified: trunk/gtk/src/YGDialog.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGDialog.cc?rev=47894&r1=47893&r2=47894&view=diff
==============================================================================
--- trunk/gtk/src/YGDialog.cc (original)
+++ trunk/gtk/src/YGDialog.cc Mon May 26 19:58:39 2008
@@ -209,13 +209,10 @@
void busyCursor()
{
if (GTK_WIDGET_REALIZED (m_widget)) {
- // GdkDisplay won't change for new dialogs
- static GdkCursor *cursor = NULL;
- if (!cursor) {
- GdkDisplay *display = gtk_widget_get_display (m_widget);
- cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
- }
+ GdkDisplay *display = gtk_widget_get_display (m_widget);
+ GdkCursor *cursor = gdk_cursor_new_for_display (display, GDK_WATCH);
gdk_window_set_cursor (m_widget->window, cursor);
+ gdk_cursor_unref (cursor);
}
}
Modified: trunk/gtk/src/YGTextView.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGTextView.cc?rev=47894&r1=47893&r2=47894&view=diff
==============================================================================
--- trunk/gtk/src/YGTextView.cc (original)
+++ trunk/gtk/src/YGTextView.cc Mon May 26 19:58:39 2008
@@ -89,7 +89,7 @@
{
if (pThis->maxChars != -1 && pThis->getCharsNb() > pThis->maxChars) {
pThis->truncateText (pThis->maxChars);
- gdk_beep();
+ gtk_widget_error_bell (pThis->getWidget());
}
pThis->emitEvent (YEvent::ValueChanged);
}
Modified: trunk/gtk/src/YGUI.cc
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/YGUI.cc?rev=47894&r1=47893&r2=47894&view=diff
==============================================================================
--- trunk/gtk/src/YGUI.cc (original)
+++ trunk/gtk/src/YGUI.cc Mon May 26 19:58:39 2008
@@ -429,10 +429,13 @@
void YGApplication::beep()
{
- gdk_beep();
GtkWindow *window = YGDialog::currentWindow();
- if (window)
+ if (window) {
gtk_window_present (window);
+ gtk_widget_error_bell (GTK_WIDGET (window));
+ }
+ else
+ gdk_beep();
}
// File/directory dialogs
Modified: trunk/gtk/src/ygtkwizard.c
URL: http://svn.opensuse.org/viewcvs/yast/trunk/gtk/src/ygtkwizard.c?rev=47894&r1=47893&r2=47894&view=diff
==============================================================================
--- trunk/gtk/src/ygtkwizard.c (original)
+++ trunk/gtk/src/ygtkwizard.c Mon May 26 19:58:39 2008
@@ -56,7 +56,7 @@
white = { 0, 255 << 8, 255 << 8, 255 << 8 };
gtk_widget_modify_base (dialog->search_entry, GTK_STATE_NORMAL, &red);
gtk_widget_modify_text (dialog->search_entry, GTK_STATE_NORMAL, &white);
- gdk_beep();
+ gtk_widget_error_bell (GTK_WIDGET (dialog));
}
else {
gtk_widget_modify_base (dialog->search_entry, GTK_STATE_NORMAL, NULL);
--
To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org
For additional commands, e-mail: yast-commit+help@opensuse.org