fix last gdk warning :)
authorColin Leroy <colin@colino.net>
Fri, 23 Aug 2002 06:52:15 +0000 (06:52 +0000)
committerColin Leroy <colin@colino.net>
Fri, 23 Aug 2002 06:52:15 +0000 (06:52 +0000)
ChangeLog.claws
configure.in
src/mainwindow.c
src/messageview.c
src/messageview.h
src/noticeview.c
src/noticeview.h
src/summaryview.c

index 2393a3d..6713a8f 100644 (file)
@@ -1,3 +1,12 @@
+2002-08-22 [colin]     0.8.1claws103
+
+       * src/mainwindow.c
+         src/messageview.[ch]
+         src/noticeview.[ch]
+         src/summaryview.c
+               Changed messageview_create() and noticeview_create()
+               to avoid the last gdk_warning
+
 2002-08-22 [colin]     0.8.1claws102
 
        * src/summaryview.c
index bc7877d..92c60fd 100644 (file)
@@ -8,7 +8,7 @@ MINOR_VERSION=8
 MICRO_VERSION=1
 INTERFACE_AGE=0
 BINARY_AGE=0
-EXTRA_VERSION=claws102
+EXTRA_VERSION=claws103
 VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
 
 dnl set $target
index d099b53..da5416f 100644 (file)
@@ -824,7 +824,7 @@ MainWindow *main_window_create(SeparateType type)
        /* create views */
        mainwin->folderview  = folderview  = folderview_create();
        mainwin->summaryview = summaryview = summary_create();
-       mainwin->messageview = messageview = messageview_create();
+       mainwin->messageview = messageview = messageview_create(mainwin);
        mainwin->logwin      = log_window_create();
 
        folderview->mainwin      = mainwin;
index 541664e..1d299a4 100644 (file)
@@ -68,7 +68,7 @@ static void return_receipt_send_clicked (NoticeView   *noticeview,
 static PrefsAccount *select_account_from_list
                                        (GList          *ac_list);
 
-MessageView *messageview_create(void)
+MessageView *messageview_create(MainWindow *mainwin)
 {
        MessageView *messageview;
        GtkWidget *vbox;
@@ -85,7 +85,7 @@ MessageView *messageview_create(void)
 
        headerview = headerview_create();
 
-       noticeview = noticeview_create();
+       noticeview = noticeview_create(mainwin);
 
        textview = textview_create();
        textview->messageview = messageview;
@@ -125,7 +125,7 @@ MessageView *messageview_create(void)
        return messageview;
 }
 
-MessageView *messageview_create_with_new_window(void)
+MessageView *messageview_create_with_new_window(MainWindow *mainwin)
 {
        GtkWidget *window;
        MessageView *msgview;
@@ -137,7 +137,7 @@ MessageView *messageview_create_with_new_window(void)
        gtk_widget_set_usize(window, prefs_common.msgwin_width,
                             prefs_common.msgwin_height);
 
-       msgview = messageview_create();
+       msgview = messageview_create(mainwin);
 
        gtk_signal_connect(GTK_OBJECT(window), "size_allocate",
                           GTK_SIGNAL_FUNC(messageview_size_allocate_cb),
index cf96849..0c4c9e2 100644 (file)
@@ -58,8 +58,8 @@ struct _MessageView
        gboolean visible;
 };
 
-MessageView *messageview_create                        (void);
-MessageView *messageview_create_with_new_window        (void);
+MessageView *messageview_create                        (MainWindow     *mainwin);
+MessageView *messageview_create_with_new_window        (MainWindow     *mainwin);
 void messageview_init                          (MessageView    *messageview);
 void messageview_show                          (MessageView    *messageview,
                                                 MsgInfo        *msginfo,
index 90ee334..553cb7f 100644 (file)
@@ -49,7 +49,7 @@
 
 static void noticeview_button_pressed  (GtkButton *button, NoticeView *noticeview);
 
-NoticeView *noticeview_create(void)
+NoticeView *noticeview_create(MainWindow *mainwin)
 {
        NoticeView *noticeview;
        GtkWidget  *vbox;
@@ -71,7 +71,7 @@ NoticeView *noticeview_create(void)
        gtk_widget_show(hbox);
        gtk_box_pack_start(GTK_BOX(vbox), hbox, FALSE, TRUE, 0);
 
-       icon = stock_pixmap_widget(hbox, STOCK_PIXMAP_NOTICE_WARN); 
+       icon = stock_pixmap_widget(mainwin->window, STOCK_PIXMAP_NOTICE_WARN); 
 #if 0
        /* also possible... */
        icon = gtk_pixmap_new(NULL, NULL);
index b64449d..346bfd2 100644 (file)
@@ -35,7 +35,7 @@ struct _NoticeView
        void            (*press) (NoticeView *, gpointer user_data);
 };
 
-NoticeView     *noticeview_create      (void);
+NoticeView     *noticeview_create      (MainWindow     *mainwin);
 void            noticeview_destroy     (NoticeView     *noticeview);
 void            noticeview_init        (NoticeView     *noticeview);
 void            noticeview_set_icon    (NoticeView     *noticeview,
index ad7d08f..4aa0d32 100644 (file)
@@ -2319,7 +2319,7 @@ static void summary_display_msg_full(SummaryView *summaryview,
        if (new_window) {
                MessageView *msgview;
 
-               msgview = messageview_create_with_new_window();
+               msgview = messageview_create_with_new_window(summaryview->mainwin);
                messageview_show(msgview, msginfo, all_headers);
        } else {
                MessageView *msgview;