323 G_OBJECT_CLASS(ev_browser_plugin_toolbar_parent_class)->constructed(
object);
326 bool rtl = gtk_widget_get_direction(GTK_WIDGET(toolbar)) == GTK_TEXT_DIR_RTL;
332 gtk_container_add(GTK_CONTAINER(hbox), button);
333 gtk_widget_show(button);
336 gtk_container_add(GTK_CONTAINER(hbox), button);
337 gtk_widget_show(button);
339 GtkWidget *toolItem = GTK_WIDGET(gtk_tool_item_new());
341 gtk_widget_set_margin_left(toolItem, 12);
343 gtk_widget_set_margin_right(toolItem, 12);
344 gtk_container_add(GTK_CONTAINER(toolItem), hbox);
345 gtk_widget_show(hbox);
347 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
348 gtk_widget_show(toolItem);
353 g_signal_connect_swapped(toolItem,
"activate-link", G_CALLBACK(
activateLink), toolbar);
355 gtk_widget_set_margin_left(toolItem, 12);
357 gtk_widget_set_margin_right(toolItem, 12);
358 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
359 gtk_widget_show(toolItem);
362 button =
createToggleButton(toolbar,
"edit-find-symbolic",
_(
"Find a word or phrase in the document"),
365 toolItem = GTK_WIDGET(gtk_tool_item_new());
366 gtk_container_add(GTK_CONTAINER(toolItem), button);
367 gtk_widget_show(button);
369 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
370 gtk_widget_show(toolItem);
373 toolItem = GTK_WIDGET(gtk_tool_item_new());
374 gtk_tool_item_set_expand(GTK_TOOL_ITEM(toolItem),
TRUE);
375 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
376 gtk_widget_show(toolItem);
381 button =
createToggleButton(toolbar,
"view-continuous-symbolic",
_(
"Show the entire document"),
386 gtk_container_add(GTK_CONTAINER(hbox), button);
387 gtk_widget_show(button);
394 gtk_container_add(GTK_CONTAINER(hbox), button);
395 gtk_widget_show(button);
397 toolItem = GTK_WIDGET(gtk_tool_item_new());
399 gtk_widget_set_margin_left(toolItem, 12);
401 gtk_widget_set_margin_right(toolItem, 12);
402 gtk_container_add(GTK_CONTAINER(toolItem), hbox);
403 gtk_widget_show(hbox);
405 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
406 gtk_widget_show(toolItem);
411 button =
createButton(toolbar,
"zoom-in-symbolic",
_(
"Enlarge the document"), G_CALLBACK(
zoomIn));
412 gtk_container_add(GTK_CONTAINER(hbox), button);
413 gtk_widget_show(button);
415 button =
createButton(toolbar,
"zoom-out-symbolic",
_(
"Shrink the document"), G_CALLBACK(
zoomOut));
416 gtk_container_add(GTK_CONTAINER(hbox), button);
417 gtk_widget_show(button);
420 gtk_container_add(GTK_CONTAINER(hbox), button);
421 gtk_widget_show(button);
423 toolItem = GTK_WIDGET(gtk_tool_item_new());
425 gtk_widget_set_margin_left(toolItem, 12);
427 gtk_widget_set_margin_right(toolItem, 12);
428 gtk_container_add(GTK_CONTAINER(toolItem), hbox);
429 gtk_widget_show(hbox);
431 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
432 gtk_widget_show(toolItem);
438 toolItem = GTK_WIDGET(gtk_tool_item_new());
439 gtk_container_add(GTK_CONTAINER(toolItem), button);
440 gtk_widget_show(button);
442 gtk_widget_set_margin_left(toolItem, 6);
444 gtk_widget_set_margin_right(toolItem, 6);
446 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
447 gtk_widget_show(toolItem);
451 toolItem = GTK_WIDGET(gtk_tool_item_new());
452 gtk_container_add(GTK_CONTAINER(toolItem), button);
453 gtk_widget_show(button);
455 gtk_container_add(GTK_CONTAINER(toolbar), toolItem);
456 gtk_widget_show(toolItem);