Complete.Org: Mailing Lists: Archives: freeciv-dev: January 2003:
[Freeciv-Dev] (PR#2893) Woops...
Home

[Freeciv-Dev] (PR#2893) Woops...

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: undisclosed-recipients:;
Subject: [Freeciv-Dev] (PR#2893) Woops...
From: "\"Janus N.\" Tøndering via RT" <rt@xxxxxxxxxxxxxx>
Date: Fri, 24 Jan 2003 09:01:31 -0800
Reply-to: rt@xxxxxxxxxxxxxx


Sorry ... here is the actual patch.

Janus
-- 
Janus Nørgaard Tøndering        
email: janus(at)bananus.dk or janus(at)daimi.au.dk

"I have not failed. I've just found 10,000 ways that won't work."
        - Thomas Alva Edison (1847-1931)


diff -ur -Xfreeciv/diff_ignore freeciv.old/client/gui-gtk-2.0/gui_main.c 
freeciv/client/gui-gtk-2.0/gui_main.c
--- freeciv.old/client/gui-gtk-2.0/gui_main.c   2003-01-02 06:55:14.000000000 
+0100
+++ freeciv/client/gui-gtk-2.0/gui_main.c       2003-01-24 17:43:25.000000000 
+0100
@@ -330,6 +330,35 @@
         data = "";
       }
     }
+    if (ev->keyval == GDK_Page_Up) {
+      GtkAdjustment *adj;
+      GtkWidget *sw;
+      gint nval;
+
+      keypress = TRUE;
+
+      sw = gtk_widget_get_parent(GTK_WIDGET(main_message_area));
+      g_object_get(G_OBJECT(sw), "vadjustment", &adj, NULL);
+      nval = adj->value - adj->page_increment;
+      gtk_adjustment_set_value(adj, nval);
+    }
+               
+               /* scrolls main_message_area down one page */
+    if (ev->keyval == GDK_Page_Down) {
+      GtkAdjustment *adj;
+      GtkWidget *sw;
+      gint nval;
+
+      keypress = TRUE;
+
+      sw = gtk_widget_get_parent(GTK_WIDGET(main_message_area));
+      g_object_get(G_OBJECT(sw), "vadjustment", &adj, NULL);
+      nval = adj->value + adj->page_increment;
+      if(nval <= adj->upper) {
+        gtk_adjustment_set_value(adj, nval);
+      }
+    }
+               
 
     if (data)
       gtk_entry_set_text(GTK_ENTRY(inputline), data);
@@ -340,6 +369,7 @@
     return keypress;
   }
 
+
   if (is_isometric && !client_is_observer()) {
     switch (ev->keyval) {
       case GDK_Up:

Attachment: signature.asc
Description: signature.asc


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] (PR#2893) Woops..., "Janus N." Tøndering via RT <=