Beispiel #1
0
void update_zoom_level(MainWindow *main_window, Documentable *doc)
{
  gphpedit_debug(DEBUG_MAIN_WINDOW);
  guint zoom_level = 100;
  if (doc) g_object_get(doc, "zoom_level", &zoom_level, NULL);
  gphpedit_statusbar_set_zoom_level(GPHPEDIT_STATUSBAR(main_window->appbar), zoom_level);
}
Beispiel #2
0
static void main_window_create_appbar(MainWindow *main_window)
{
  GtkWidget *statusbox = get_widget_from_builder(main_window, "statusbox");
  gtk_widget_show (statusbox);
  main_window->appbar = gphpedit_statusbar_new (main_window);
  gtk_box_pack_start(GTK_BOX(statusbox), main_window->appbar, FALSE, TRUE, 1);
  gphpedit_statusbar_set_zoom_level(GPHPEDIT_STATUSBAR(main_window->appbar), 100);
  if (get_preferences_manager_show_statusbar(main_window->prefmg)) gtk_widget_show (main_window->appbar);
}
void update_zoom_level(void) {
    gphpedit_debug(DEBUG_MAIN_WINDOW);
    gphpedit_statusbar_set_zoom_level((GphpeditStatusbar *)main_window.appbar, document_get_zoom_level(document_manager_get_current_document(main_window.docmg)));
}