[giggle/gtk3: 2/6] Use GDK3 key constants
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [giggle/gtk3: 2/6] Use GDK3 key constants
- Date: Wed, 27 Oct 2010 01:56:32 +0000 (UTC)
commit 13d63ffa834b119c8260a47915234d59c73b5f4c
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 27 02:42:44 2010 +0200
Use GDK3 key constants
src/eggfindbar.c | 6 +++---
src/giggle-helpers.c | 2 +-
src/giggle-view-history.c | 7 ++++---
3 files changed, 8 insertions(+), 7 deletions(-)
---
diff --git a/src/eggfindbar.c b/src/eggfindbar.c
index f9b9116..56fe598 100644
--- a/src/eggfindbar.c
+++ b/src/eggfindbar.c
@@ -179,14 +179,14 @@ egg_find_bar_class_init (EggFindBarClass *klass)
binding_set = gtk_binding_set_by_class (klass);
- gtk_binding_entry_add_signal (binding_set, GDK_Escape, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_Escape, 0,
"close", 0);
- gtk_binding_entry_add_signal (binding_set, GDK_Up, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_Up, 0,
"scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_BACKWARD);
- gtk_binding_entry_add_signal (binding_set, GDK_Down, 0,
+ gtk_binding_entry_add_signal (binding_set, GDK_KEY_Down, 0,
"scroll", 1,
GTK_TYPE_SCROLL_TYPE, GTK_SCROLL_STEP_FORWARD);
}
diff --git a/src/giggle-helpers.c b/src/giggle-helpers.c
index cd35ce0..a40b62f 100644
--- a/src/giggle-helpers.c
+++ b/src/giggle-helpers.c
@@ -57,7 +57,7 @@ gboolean
giggle_list_view_delete_selection (GtkWidget *treeview,
GdkEventKey *event)
{
- if (event->keyval == GDK_Delete) {
+ if (event->keyval == GDK_KEY_Delete) {
GtkTreeSelection* sel;
sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (treeview));
diff --git a/src/giggle-view-history.c b/src/giggle-view-history.c
index cd80c63..52d73d3 100644
--- a/src/giggle-view-history.c
+++ b/src/giggle-view-history.c
@@ -516,7 +516,8 @@ view_history_revision_list_key_press_cb (GiggleRevListView *list,
priv = view->priv;
- if (event->keyval != GDK_space && event->keyval != GDK_BackSpace)
+ if (event->keyval != GDK_KEY_space &&
+ event->keyval != GDK_KEY_BackSpace)
return FALSE;
giggle_view_shell_set_view_name (GIGGLE_VIEW_SHELL (priv->revision_shell), "DiffView");
@@ -525,7 +526,7 @@ view_history_revision_list_key_press_cb (GiggleRevListView *list,
adj_value = gtk_adjustment_get_value (adj);
page_size = gtk_adjustment_get_page_size (adj);
- value = event->keyval == GDK_space ?
+ value = event->keyval == GDK_KEY_space ?
adj_value + (page_size * 0.8) :
adj_value - (page_size * 0.8);
@@ -534,7 +535,7 @@ view_history_revision_list_key_press_cb (GiggleRevListView *list,
if (gtk_tree_view_get_visible_range (GTK_TREE_VIEW (priv->revision_list), &start, &end)) {
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (priv->revision_list));
- path = event->keyval == GDK_space ? end : start;
+ path = event->keyval == GDK_KEY_space ? end : start;
gtk_tree_selection_unselect_all (selection);
gtk_tree_selection_select_path (selection, path);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]