Ejemplo n.º 1
0
void
ghid_netlist_window_show (GHidPort * out, gboolean raise)
{
  ghid_netlist_window_create (out);
  gtk_widget_show_all (netlist_window);
  ghid_netlist_window_update (TRUE);
  if (raise)
    gtk_window_present(GTK_WINDOW(netlist_window));
}
Ejemplo n.º 2
0
static gint
GhidNetlistChanged (int argc, char **argv, int x, int y)
{
  loading_new_netlist = TRUE;
  ghid_netlist_window_update (TRUE);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (disable_all_button),
				FALSE);
  loading_new_netlist = FALSE;
  return 0;
}
Ejemplo n.º 3
0
static gint
GhidNetlistChanged (int argc, char **argv, Coord x, Coord y)
{
  /* XXX: We get called before the GUI is up when
   *         exporting from the command-line. */
  if (ghidgui == NULL || !ghidgui->is_up)
    return 0;

  /* There is no need to update if the netlist window isn't open */
  if (netlist_window == NULL)
    return 0;

  loading_new_netlist = TRUE;
  ghid_netlist_window_update (TRUE);
  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (disable_all_button),
				FALSE);
  loading_new_netlist = FALSE;
  return 0;
}