mirror of
https://git.pwmt.org/pwmt/zathura.git
synced 2024-12-28 06:46:00 +01:00
Show PDF pages
This commit is contained in:
parent
2c0e28e877
commit
33343cd52b
1 changed files with 3 additions and 5 deletions
|
@ -232,7 +232,7 @@ gboolean scmd_search(char*, Argument*);
|
||||||
|
|
||||||
/* callback declarations */
|
/* callback declarations */
|
||||||
gboolean cb_destroy(GtkWidget*, gpointer);
|
gboolean cb_destroy(GtkWidget*, gpointer);
|
||||||
gboolean cb_draw(GtkWidget*, gpointer);
|
gboolean cb_draw(GtkWidget*, GdkEventExpose*, gpointer);
|
||||||
gboolean cb_view_kb_pressed(GtkWidget*, GdkEventKey*, gpointer);
|
gboolean cb_view_kb_pressed(GtkWidget*, GdkEventKey*, gpointer);
|
||||||
gboolean cb_inputbar_kb_pressed(GtkWidget*, GdkEventKey*, gpointer);
|
gboolean cb_inputbar_kb_pressed(GtkWidget*, GdkEventKey*, gpointer);
|
||||||
gboolean cb_inputbar_activate(GtkEntry*, gpointer);
|
gboolean cb_inputbar_activate(GtkEntry*, gpointer);
|
||||||
|
@ -1267,12 +1267,10 @@ cb_destroy(GtkWidget* widget, gpointer data)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean cb_draw(GtkWidget* widget, gpointer data)
|
gboolean cb_draw(GtkWidget* widget, GdkEventExpose* expose, gpointer data)
|
||||||
{
|
{
|
||||||
intptr_t t = (intptr_t) data;
|
intptr_t t = (intptr_t) data;
|
||||||
int page_id = (int) (t << 32);
|
int page_id = (int) t;
|
||||||
|
|
||||||
printf("%d\n", page_id);
|
|
||||||
|
|
||||||
if(page_id < 0 || page_id > Zathura.PDF.number_of_pages)
|
if(page_id < 0 || page_id > Zathura.PDF.number_of_pages)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue