|
|
#1 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
I didn't enable a whole bunch of functions.
but meh. http://sourceforge.net/projects/gtk-sudoku/?source=dlp works on the oldest KT thru to the newest PW1. sudoku. Enjoy. (for Brian) |
|
|
|
|
|
#2 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
patch. (this is for DEVELOPERS to see what code changes were made) not required, nor exciting...
Last edited by twobob; 11-05-2013 at 10:57 PM. |
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Thank you, sir! Again.
|
|
|
|
|
|
#4 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
welcome mate.
|
|
|
|
|
|
#5 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
did you write the toggle_keyboard() function or where is that from?
I also like the sizing part - SET_SIZE - you made it so its just enough to still show the keyboard. So did you did try matchbox-keyboard also? Then you could have a special layout for just the few buttons you need, right? numbers, backspace, and enter? Amazing. Yup. |
|
|
|
| Advert | |
|
|
|
|
#6 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
i did try that and in fact have all the work to enable it. the save/open filefilechoosers however were a real PITA to handle tidily. and the layout got really ugly. so I nerfed them for now. the toggle keyboards is/was bafs. most of the time on this was deciding what could be easily ported. much could be reimplemented and indeed I left several stubs in the patch to help that along...
glad you like it.
Last edited by twobob; 11-08-2013 at 04:22 PM. |
|
|
|
|
|
#7 | |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 457
Karma: 1287375
Join Date: Jan 2013
Location: West Gardiner, Maine
Device: Touch (5.3.7)
|
Quote:
|
|
|
|
|
|
|
#8 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
right.
: ) |
|
|
|
|
|
#9 |
|
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 405
Karma: 2330752
Join Date: May 2012
Device: kt
|
You could also try something like this, using my openlipc.h:
Code:
#include <openlipc.h>
int is_keyboard_visible(){
char publisher[]="com.lab126.keyboard";
char property[]="show";
int ivalue, lipc_handle, lipc_error;
lipc_handle = LipcOpenNoName();
if (!lipc_handle) {
return -1;
}
lipc_error = LipcGetIntProperty(lipc_handle, publisher, property, &ivalue);
LipcClose(lipc_handle);
if (lipc_error) {
return -1;
}
return ivalue;
}
int open_keyboard(){
int lipc_handle, lipc_error;
char publisher[]="com.lab126.keyboard";
char property[]="open";
char value[100];
int p = getpid();
snprintf(value, sizeof value, "com.lab126.gtkInputMethod%d:abc:0", p);
lipc_handle = LipcOpenNoName();
if (!lipc_handle) {
return FALSE;
}
lipc_error = LipcSetStringProperty(lipc_handle, publisher, property, value);
LipcClose(lipc_handle);
if (lipc_error) {
return FALSE;
}
return TRUE;
}
int close_keyboard(){
int lipc_handle, lipc_error;
char publisher[]="com.lab126.keyboard";
char property[]="close";
char value[100];
int p = getpid();
snprintf(value, sizeof value, "com.lab126.gtkInputMethod%d", p);
lipc_handle = LipcOpenNoName();
if (!lipc_handle) {
return FALSE;
}
lipc_error = LipcSetStringProperty(lipc_handle, publisher, property, value);
LipcClose(lipc_handle);
if (lipc_error) {
return FALSE;
}
return TRUE;
}
void toggle_keyboard() {
if (is_keyboard_visible()) {
close_keyboard();
} else {
open_keyboard();
}
}
|
|
|
|
|
|
#10 |
|
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,586
Karma: 6299993
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
|
Thanks mate. I was absolutely thinking about having a go with your open lipc when I did that, you read my mind.
However the majorly annoying filechooser's once again soaked up far too much of my time so I ended up with the "low calorie" solution above. (The filechoosers were visually buggy on the lowest KT version) This is an excellent example, thanks very much, and I will either weld it back into this later or into the next thing for sure. Last edited by twobob; 11-07-2013 at 12:23 AM. |
|
|
|
![]() |
| Tags |
| kindle, kual, sudoku, twobob |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Gtk themes? | aditya3098 | Kindle Developer's Corner | 2 | 10-30-2012 11:56 PM |
| linking to gtk | chris_c | Kindle Developer's Corner | 7 | 08-25-2012 10:19 AM |
| Is a gtk version possible? | frandavid100 | Calibre | 14 | 12-16-2008 04:09 PM |
| iLiad Need help getting started with gtk | tribble | iRex Developer's Corner | 4 | 06-05-2007 01:38 PM |
| Multiplayer Sudoku: Sudoku Combat! | PostGrant | Lounge | 1 | 06-20-2006 07:14 AM |