[gimp-gap] iconify storyboard while calling video encoder



commit 102dea2bc0690e45ae294d283e2a81470d06da2e
Author: Wolfgang Hofer <wolfgangh svn gnome org>
Date:   Sun May 17 14:20:48 2009 +0200

    iconify storyboard while calling video encoder
---
 ChangeLog                 |   18 +++++++++++++++++-
 gap/gap_story_dialog.c    |    8 +++++++-
 vid_common/gap_cme_main.c |    7 +++----
 3 files changed, 27 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 4ac4011..269ccb0 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,21 @@
-2009-05-16 Wolfgang Hofer <hof gimp org>
+2009-05-17 Wolfgang Hofer <hof gimp org>
+
+- iconify storyboard dialog window when calling video encoder from storyboard menu
+  and deiconify when the encoder call returns.
+  
+  On my gnome windowmanager the encoder dialog always opened behind the storyboard dialog window
+  but the storyboard dialog is not refreshed due to the synchron call of the encoder plug-in.
+  the iconify /deiconify is a practicable workaround to avoid this annoying situation.
+
+- Master Video encoder moved from "Video/Encode" to "Video" Menu
+  menu name "Master Videoencoder..." now has ending ... to inidcate that ist opens a dialog.
+  note that the other old video encoders are not built by default
+  therefore the submenu is not required for normal gimp-gap users.
 
+  * gap/gap_story_dialog.c
+  * vid_common/gap_cme_main.c
+
+2009-05-16 Wolfgang Hofer <hof gimp org>
 - configure now checks for detection of FAAD2 or FAAD library
   that is also sufficient to build with ffmpeg 0.5
 
diff --git a/gap/gap_story_dialog.c b/gap/gap_story_dialog.c
index 21c4510..87a02c9 100644
--- a/gap/gap_story_dialog.c
+++ b/gap/gap_story_dialog.c
@@ -1945,7 +1945,12 @@ p_call_master_encoder(GapStbMainGlobalParams *sgpp
   l_rc = -1;
   gap_story_get_master_size_respecting_aspect(stb, &vid_width, &vid_height);
 
-
+  gtk_window_iconify(sgpp->shell_window);
+  while (gtk_events_pending ())
+  {
+    gtk_main_iteration ();
+  }
+   
   dummy_layer_id = gap_image_get_any_layer(sgpp->image_id);
   /* generic call of GAP master video encoder plugin */
   l_params = gimp_run_procedure (GAP_PLUG_IN_MASTER_ENCODER,
@@ -1984,6 +1989,7 @@ p_call_master_encoder(GapStbMainGlobalParams *sgpp
       break;
   }
   g_free(l_params);
+  gtk_window_deiconify(sgpp->shell_window);
 
 }  /* end p_call_master_encoder */
 
diff --git a/vid_common/gap_cme_main.c b/vid_common/gap_cme_main.c
index 0e0c0bb..6f7123e 100644
--- a/vid_common/gap_cme_main.c
+++ b/vid_common/gap_cme_main.c
@@ -157,16 +157,15 @@ query ()
                          "Wolfgang Hofer (hof gimp org)",
                          "Wolfgang Hofer",
                          GAP_VERSION_WITH_DATE,
-                         N_("Master Videoencoder"),
+                         N_("Master Videoencoder..."),
                          "RGB*, INDEXED*, GRAY*",
                          GIMP_PLUGIN,
                          nargs_qt_enc, nreturn_vals,
                          args_qt_enc, return_vals);
 
   //gimp_plugin_menu_branch_register("<Image>", "Video");
-  //gimp_plugin_menu_branch_register("<Image>/Video", "Encode");
-  
-  gimp_plugin_menu_register (GAP_CME_PLUGIN_NAME_VID_ENCODE_MASTER, N_("<Image>/Video/Encode/"));
+
+  gimp_plugin_menu_register (GAP_CME_PLUGIN_NAME_VID_ENCODE_MASTER, N_("<Image>/Video/"));
 
 }       /* end query */
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]