[gnome-games] glines: fix some gtk3 issues
- From: Thomas Hindoe Paaboel Andersen <thomashpa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games] glines: fix some gtk3 issues
- Date: Tue, 19 Oct 2010 20:39:21 +0000 (UTC)
commit fbe08db602f96f29263b4992305b84b935099f68
Author: Thomas Hindoe Paaboel Andersen <phomes gmail com>
Date: Tue Oct 19 22:36:40 2010 +0200
glines: fix some gtk3 issues
glines/glines.c | 41 +++++++++++++++----------------
libgames-support/games-scores-dialog.c | 2 -
2 files changed, 20 insertions(+), 23 deletions(-)
---
diff --git a/glines/glines.c b/glines/glines.c
index 419f188..20c5f64 100644
--- a/glines/glines.c
+++ b/glines/glines.c
@@ -783,42 +783,42 @@ key_press_event (GtkWidget * widget, GdkEventKey * event, void *d)
key = event->keyval;
switch (key) {
- case GDK_Left:
- case GDK_KP_Left:
+ case GDK_KEY_Left:
+ case GDK_KEY_KP_Left:
move_cursor (-1, 0);
break;
- case GDK_Right:
- case GDK_KP_Right:
+ case GDK_KEY_Right:
+ case GDK_KEY_KP_Right:
move_cursor (1, 0);
break;
- case GDK_Up:
- case GDK_KP_Up:
+ case GDK_KEY_Up:
+ case GDK_KEY_KP_Up:
move_cursor (0, -1);
break;
- case GDK_Down:
- case GDK_KP_Down:
+ case GDK_KEY_Down:
+ case GDK_KEY_KP_Down:
move_cursor (0, 1);
break;
- case GDK_Home:
- case GDK_KP_Home:
+ case GDK_KEY_Home:
+ case GDK_KEY_KP_Home:
move_cursor (-999, 0);
break;
- case GDK_End:
- case GDK_KP_End:
+ case GDK_KEY_End:
+ case GDK_KEY_KP_End:
move_cursor (999, 0);
break;
- case GDK_Page_Up:
- case GDK_KP_Page_Up:
+ case GDK_KEY_Page_Up:
+ case GDK_KEY_KP_Page_Up:
move_cursor (0, -999);
break;
- case GDK_Page_Down:
- case GDK_KP_Page_Down:
+ case GDK_KEY_Page_Down:
+ case GDK_KEY_KP_Page_Down:
move_cursor (0, 999);
break;
- case GDK_space:
- case GDK_Return:
- case GDK_KP_Enter:
+ case GDK_KEY_space:
+ case GDK_KEY_Return:
+ case GDK_KEY_KP_Enter:
if (show_cursor)
cell_clicked (widget, cursor_x, cursor_y);
break;
@@ -1438,7 +1438,6 @@ game_props_callback (void)
GTK_DIALOG_DESTROY_WITH_PARENT,
GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE, NULL);
- gtk_dialog_set_has_separator (GTK_DIALOG (pref_dialog), FALSE);
g_signal_connect (pref_dialog, "response",
G_CALLBACK (pref_dialog_response), NULL);
g_signal_connect (pref_dialog, "delete-event",
@@ -1833,7 +1832,7 @@ main (int argc, char *argv[])
ui_manager = gtk_ui_manager_new ();
games_stock_prepare_for_statusbar_tooltips (ui_manager, statusbar);
- gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (statusbar), FALSE);
+ gtk_window_set_has_resize_grip (GTK_WINDOW (app), FALSE);
vbox = gtk_vbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (app), vbox);
diff --git a/libgames-support/games-scores-dialog.c b/libgames-support/games-scores-dialog.c
index ffa6f6f..9d7403b 100644
--- a/libgames-support/games-scores-dialog.c
+++ b/libgames-support/games-scores-dialog.c
@@ -471,8 +471,6 @@ static void games_scores_dialog_init (GamesScoresDialog *self)
self->_priv->catcounter = 0;
self->_priv->hilight = 0;
self->_priv->sethilight = -1;
-
- gtk_dialog_set_has_separator (GTK_DIALOG (self), FALSE);
gtk_container_set_border_width (GTK_CONTAINER (self), 5);
gtk_box_set_spacing (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (self))), 2);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]