[Xfce4-commits] <ristretto:master> Fix compiler warning and toggle print-button sensitivity

Stephan Arts stephan at xfce.org
Wed Aug 12 12:22:12 CEST 2009


Updating branch refs/heads/master
         to c392e68978eb22be783cc51fb4dc5af083e21019 (commit)
       from 77ca2890d1c29041719b07704c05dc064d88bf46 (commit)

commit c392e68978eb22be783cc51fb4dc5af083e21019
Author: Stephan Arts <stephan at xfce.org>
Date:   Mon May 18 00:41:55 2009 +0200

    Fix compiler warning and toggle print-button sensitivity

 ChangeLog         |    5 +++++
 src/main_window.c |    7 ++++++-
 2 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index db03ec5..28898cb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2009-05-17  Stephan Arts <stephan at xfce.org>
 
+	* src/main_window.c: Toggle printing-button sensitivity
+	* src/main_window.c: Fix compiler warning
+
+2009-05-17  Stephan Arts <stephan at xfce.org>
+
 	* src/main_window.c: Implement first rudimentary printing.
 
 2009-05-16  Stephan Arts <stephan at xfce.org>
diff --git a/src/main_window.c b/src/main_window.c
index 1d4fcd3..9534422 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -605,6 +605,11 @@ rstto_main_window_set_sensitive (RsttoMainWindow *window, gboolean sensitive)
     gtk_widget_set_sensitive (
             gtk_ui_manager_get_widget (
                     window->priv->ui_manager,
+                    "/main-menu/file-menu/print"),
+            sensitive);
+    gtk_widget_set_sensitive (
+            gtk_ui_manager_get_widget (
+                    window->priv->ui_manager,
                     "/main-menu/file-menu/close"),
             sensitive);
     gtk_widget_set_sensitive (
@@ -1193,7 +1198,7 @@ cb_rstto_main_window_print (GtkWidget *widget, RsttoMainWindow *window)
     
     g_signal_connect (print_operation, "draw-page", G_CALLBACK (rstto_main_window_print_draw_page), window);
 
-    gtk_print_operation_run (print_operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, window, NULL);
+    gtk_print_operation_run (print_operation, GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, GTK_WINDOW(window), NULL);
     
 }
 



More information about the Xfce4-commits mailing list