Added a couple buttons to the slideshow toolbar (previous and next, not functional)
This commit is contained in:
parent
69dedd422c
commit
01bae21768
|
@ -88,6 +88,8 @@ static void _presenter_on_select_all(gpointer data);
|
||||||
static void _presenter_on_slideshow(gpointer data);
|
static void _presenter_on_slideshow(gpointer data);
|
||||||
static void _presenter_on_slideshow_close(gpointer data);
|
static void _presenter_on_slideshow_close(gpointer data);
|
||||||
static gboolean _presenter_on_slideshow_closex(gpointer data);
|
static gboolean _presenter_on_slideshow_closex(gpointer data);
|
||||||
|
static void _presenter_on_slideshow_next(gpointer data);
|
||||||
|
static void _presenter_on_slideshow_previous(gpointer data);
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
static void _presenter_on_unselect_all(gpointer data);
|
static void _presenter_on_unselect_all(gpointer data);
|
||||||
#endif
|
#endif
|
||||||
|
@ -515,7 +517,18 @@ static void _present_window(Presenter * presenter)
|
||||||
g_signal_connect_swapped(presenter->sl_window, "delete-event",
|
g_signal_connect_swapped(presenter->sl_window, "delete-event",
|
||||||
G_CALLBACK(_presenter_on_slideshow_closex), presenter);
|
G_CALLBACK(_presenter_on_slideshow_closex), presenter);
|
||||||
vbox = gtk_vbox_new(FALSE, 0);
|
vbox = gtk_vbox_new(FALSE, 0);
|
||||||
|
/* toolbar */
|
||||||
presenter->sl_toolbar = gtk_toolbar_new();
|
presenter->sl_toolbar = gtk_toolbar_new();
|
||||||
|
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_GO_BACK);
|
||||||
|
g_signal_connect_swapped(toolitem, "clicked", G_CALLBACK(
|
||||||
|
_presenter_on_slideshow_previous), presenter);
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(presenter->sl_toolbar), toolitem, -1);
|
||||||
|
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_GO_FORWARD);
|
||||||
|
g_signal_connect_swapped(toolitem, "clicked", G_CALLBACK(
|
||||||
|
_presenter_on_slideshow_next), presenter);
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(presenter->sl_toolbar), toolitem, -1);
|
||||||
|
toolitem = gtk_separator_tool_item_new();
|
||||||
|
gtk_toolbar_insert(GTK_TOOLBAR(presenter->sl_toolbar), toolitem, -1);
|
||||||
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_QUIT);
|
toolitem = gtk_tool_button_new_from_stock(GTK_STOCK_QUIT);
|
||||||
g_signal_connect_swapped(toolitem, "clicked", G_CALLBACK(
|
g_signal_connect_swapped(toolitem, "clicked", G_CALLBACK(
|
||||||
_presenter_on_slideshow_close), presenter);
|
_presenter_on_slideshow_close), presenter);
|
||||||
|
@ -676,6 +689,20 @@ static gboolean _presenter_on_slideshow_closex(gpointer data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* presenter_on_slideshow_next */
|
||||||
|
static void _presenter_on_slideshow_next(gpointer data)
|
||||||
|
{
|
||||||
|
/* FIXME implement */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* presenter_on_slideshow_previous */
|
||||||
|
static void _presenter_on_slideshow_previous(gpointer data)
|
||||||
|
{
|
||||||
|
/* FIXME implement */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef EMBEDDED
|
#ifndef EMBEDDED
|
||||||
static void _presenter_on_unselect_all(gpointer data)
|
static void _presenter_on_unselect_all(gpointer data)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user