daily pastebin goal
68%
SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/window.C b/src/window.C
  2. index d7e5bcd..8956e60 100644
  3. --- a/src/window.C
  4. +++ b/src/window.C
  5. @@ -274,6 +274,7 @@ window_t::load_geometry()
  6.      string_var geom = cs->get_string(name(), 0);
  7.      if (!geom.data())
  8.     return;
  9. +fprintf(stderr, "XXX load_geometry(%s -> %s)\n", name(), geom.data());
  10.      gtk_window_parse_geometry(GTK_WINDOW(window_), geom);
  11.  }
  12.  
  13. @@ -288,6 +289,7 @@ window_t::save_geometry()
  14.      gtk_window_get_position(GTK_WINDOW(window_), &x, &y);
  15.      estring geom;
  16.      geom.append_printf("=%dx%d+%d+%d", w, h, x, y);
  17. +fprintf(stderr, "XXX save_geometry(%s -> %s)\n", name(), geom.data());
  18.      confsection_t *cs = confsection_t::get("window-geometry");
  19.      cs->set_string(name(), geom.data());
  20.      confsection_t::sync();
  21. @@ -316,6 +318,7 @@ window_t::show()
  22.  GLADE_CALLBACK void
  23.  window_t::on_close_activate()
  24.  {
  25. +fprintf(stderr, "XXX on_close_activate(name=%s)\n", name());
  26.      save_geometry();
  27.      delete this;
  28.  }
  29. @@ -323,6 +326,7 @@ window_t::on_close_activate()
  30.  GLADE_CALLBACK void
  31.  window_t::on_delete_event(GdkEvent *ev)
  32.  {
  33. +fprintf(stderr, "XXX on_delete_event(name=%s)\n", name());
  34.      save_geometry();
  35.      delete this;
  36.  }
  37. @@ -330,6 +334,7 @@ window_t::on_delete_event(GdkEvent *ev)
  38.  GLADE_CALLBACK void
  39.  window_t::on_exit_activate()
  40.  {
  41. +fprintf(stderr, "XXX on_exit_activate(name=%s)\n", name());
  42.      for (list_iterator_t<window_t> itr = all.first() ; *itr ; ++itr)
  43.     (*itr)->save_geometry();
  44.      gtk_main_quit();
  45. @@ -341,6 +346,9 @@ window_t::on_configure_event(GtkWidget *w,
  46.  {
  47.      window_t *win = (window_t *)closure;
  48.  
  49. +fprintf(stderr, "XXX on_configure_event(name=%s x=%d y=%d w=%d h=%d)\n",
  50. +win->name(), ev->x, ev->y, ev->width, ev->height);
  51. +
  52.      if (win->geom_.w &&
  53.     (win->geom_.x != ev->x ||
  54.      win->geom_.y != ev->y ||
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top