Fixed bug where closing the dialog with the window manager's
close button will not unlock the summary
Corrected some function declarations that missed a return value
Made the source code comply better with coding style.
* src/prefs_common.c
Added a new browser command line for Mozilla.
+2002-07-19 [melvin] 0.7.8claws77
+
+ * src/selective_download.[ch]
+ Fixed bug where closing the dialog with the window manager's
+ close button will not unlock the summary
+ Corrected some function declarations that missed a return value
+ Made the source code comply better with coding style.
+ * src/prefs_common.c
+ Added new browser command line for Mozilla.
+
2002-07-18 [paul] 0.7.8claws76
* src/mainwindow.c
2002-07-18 [paul] 0.7.8claws76
* src/mainwindow.c
* src/summaryview.c
removed setting folder status from summaryview.
folder.c should update all message counts correctly.
* src/summaryview.c
removed setting folder status from summaryview.
folder.c should update all message counts correctly.
2002-07-15 [paul] 0.7.8claws68
* po/pt_BR.po
2002-07-15 [paul] 0.7.8claws68
* po/pt_BR.po
* src/prefs_common.c
...and in the process, tweak the gui a little
* src/prefs_common.c
...and in the process, tweak the gui a little
2002-06-25 [alfons] 0.7.8claws27
* configure.in
2002-06-25 [alfons] 0.7.8claws27
* configure.in
MICRO_VERSION=8
INTERFACE_AGE=0
BINARY_AGE=0
MICRO_VERSION=8
INTERFACE_AGE=0
BINARY_AGE=0
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
gtk_table_attach (GTK_TABLE (ext_table), uri_combo, 1, 2, 0, 1,
GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtkut_combo_set_items (GTK_COMBO (uri_combo),
gtk_table_attach (GTK_TABLE (ext_table), uri_combo, 1, 2, 0, 1,
GTK_EXPAND | GTK_FILL, 0, 0, 0);
gtkut_combo_set_items (GTK_COMBO (uri_combo),
+ "mozilla -remote 'openurl(%s,new-window)'",
"netscape -remote 'openURL(%s,raise)'",
"netscape '%s'",
"gnome-moz-remote --raise --newwin '%s'",
"kfmclient openURL '%s'",
"netscape -remote 'openURL(%s,raise)'",
"netscape '%s'",
"gnome-moz-remote --raise --newwin '%s'",
"kfmclient openURL '%s'",
- "opera -newwindow '%s'",
+ "opera -newwindow '%s'",
"kterm -e w3m '%s'",
"kterm -e lynx '%s'",
NULL);
"kterm -e w3m '%s'",
"kterm -e lynx '%s'",
NULL);
static GdkBitmap *deletedxpmmask;
/* local functions */
static GdkBitmap *deletedxpmmask;
/* local functions */
-static void sd_clear_msglist();
-static void sd_remove_header_files();
-static void sd_toggle_btn();
-static SD_State sd_header_filter (MsgInfo *msginfo);
-static MsgInfo *sd_get_msginfo_from_file (const gchar *filename);
-
-static void sd_clist_set_pixmap(HeaderItems *items, gint row);
-static void sd_clist_get_items();
-static void sd_clist_set_items();
-static void sd_update_msg_num(PrefsAccount *acc);
+static void sd_clear_msglist (void);
+static void sd_remove_header_files (void);
+static void sd_toggle_btn (void);
+static SD_State sd_header_filter (MsgInfo *msginfo);
+static MsgInfo *sd_get_msginfo_from_file (const gchar *filename);
+
+static void sd_clist_set_pixmap (HeaderItems *items,
+ gint row);
+static void sd_clist_get_items (void);
+static void sd_clist_set_items (void);
+static void sd_update_msg_num (PrefsAccount *acc);
-static void sd_action_cb(GtkWidget *widget, guint action);
+static void sd_action_cb (GtkWidget *widget,
+ guint action);
+
+static void sd_select_row_cb (GtkCList *clist,
+ gint row,
+ gint column,
+ GdkEvent *event,
+ gpointer user_data);
+static gint sd_key_pressed (GtkWidget *widget,
+ GdkEventKey *event,
+ gpointer data);
+static gint sd_delete_event_cb (GtkWidget *widget,
+ GdkEvent *event,
+ gpointer data);
-static void sd_select_row_cb(GtkCList *clist, gint row, gint column,
- GdkEvent *event, gpointer user_data);
-static void sd_key_pressed(GtkWidget *widget,
- GdkEventKey *event,
- gpointer data);
-static void sd_ac_label_pressed(GtkWidget *widget,
- GdkEventButton *event,
- gpointer data);
+static gint sd_ac_label_pressed (GtkWidget *widget,
+ GdkEventButton *event,
+ gpointer data);
-static void sd_ac_menu_popup_closed(GtkMenuShell *menu_shell);
-static void sd_ac_menu_cb(GtkMenuItem *menuitem, gpointer data);
-static void sd_ac_menu_set();
+static void sd_ac_menu_popup_closed (GtkMenuShell *menu_shell);
+static void sd_ac_menu_cb (GtkMenuItem *menuitem,
+ gpointer data);
+static void sd_ac_menu_set (void);
-static void sd_preview_popup_closed(GtkMenuShell *menu_shell);
-static void sd_preview_popup_cb(GtkWidget *widget, GdkEventButton *event);
+static void sd_preview_popup_closed (GtkMenuShell *menu_shell);
+static gint sd_preview_popup_cb (GtkWidget *widget,
+ GdkEventButton *event,
+ gpointer data);
+
static GtkItemFactoryEntry preview_popup_entries[] =
{
{N_("/Preview _new messages"), NULL, sd_action_cb, PREVIEW_NEW, NULL},
static GtkItemFactoryEntry preview_popup_entries[] =
{
{N_("/Preview _new messages"), NULL, sd_action_cb, PREVIEW_NEW, NULL},
-static void sd_window_create(MainWindow *mainwin);
-static void sd_create_toolbar(MainWindow *mainwin, GtkWidget *container);
+static void sd_window_create (MainWindow *mainwin);
+static void sd_create_toolbar (MainWindow *mainwin,
+ GtkWidget *container);
-void sd_init_pixmaps(MainWindow *mainwin);
+void sd_init_pixmaps (MainWindow *mainwin);
void selective_download(MainWindow *mainwin)
{
void selective_download(MainWindow *mainwin)
{
-static gint sd_deleted_cb(GtkWidget *widget, GdkEventAny *event, gpointer data)
-{
- sd_remove_header_files();
- sd_clear_msglist();
- gtk_widget_destroy(selective.window);
- selective.window = NULL;
- inc_unlock();
- return TRUE;
-}
-
/* --- Callbacks -- */
static void sd_action_cb(GtkWidget *widget, guint action)
{
/* --- Callbacks -- */
static void sd_action_cb(GtkWidget *widget, guint action)
{
-static void sd_key_pressed(GtkWidget *widget,
+static gint sd_key_pressed(GtkWidget *widget,
GdkEventKey *event,
gpointer data)
{
GdkEventKey *event,
gpointer data)
{
- if (event && event->keyval == GDK_Escape)
+ if (event && event->keyval == GDK_Escape) {
sd_action_cb(widget, DONE);
sd_action_cb(widget, DONE);
+ return TRUE;
+ }
+ return FALSE;
+}
+
+static gint sd_delete_event_cb(GtkWidget *widget,
+ GdkEvent *event,
+ gpointer data)
+{
+ sd_action_cb(widget, DONE);
+ return TRUE;
-static void sd_ac_label_pressed(GtkWidget *widget, GdkEventButton *event,
+static gint sd_ac_label_pressed(GtkWidget *widget, GdkEventButton *event,
+ if (!event) return FALSE;
gtk_button_set_relief(GTK_BUTTON(widget), GTK_RELIEF_NORMAL);
gtk_object_set_data(GTK_OBJECT(selective.ac_menu), "menu_button",
gtk_button_set_relief(GTK_BUTTON(widget), GTK_RELIEF_NORMAL);
gtk_object_set_data(GTK_OBJECT(selective.ac_menu), "menu_button",
gtk_menu_popup(GTK_MENU(selective.ac_menu), NULL, NULL,
menu_button_position, widget,
event->button, event->time);
gtk_menu_popup(GTK_MENU(selective.ac_menu), NULL, NULL,
menu_button_position, widget,
event->button, event->time);
}
static void sd_ac_menu_popup_closed(GtkMenuShell *menu_shell)
}
static void sd_ac_menu_popup_closed(GtkMenuShell *menu_shell)
manage_window_focus_in(selective.window, NULL, NULL);
}
manage_window_focus_in(selective.window, NULL, NULL);
}
-static void sd_preview_popup_cb(GtkWidget *widget, GdkEventButton *event)
+static gint sd_preview_popup_cb(GtkWidget *widget, GdkEventButton *event,
+ gpointer data)
+ if (!event) return FALSE;
if (event->button == 1) {
gtk_button_set_relief(GTK_BUTTON(widget), GTK_RELIEF_NORMAL);
gtk_menu_popup(GTK_MENU(selective.preview_popup), NULL, NULL,
menu_button_position, widget,
event->button, event->time);
if (event->button == 1) {
gtk_button_set_relief(GTK_BUTTON(widget), GTK_RELIEF_NORMAL);
gtk_menu_popup(GTK_MENU(selective.preview_popup), NULL, NULL,
menu_button_position, widget,
event->button, event->time);
}
static void sd_create_toolbar(MainWindow *mainwin, GtkWidget *container)
}
static void sd_create_toolbar(MainWindow *mainwin, GtkWidget *container)
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
gtk_signal_connect (GTK_OBJECT (window), "delete_event",
- GTK_SIGNAL_FUNC (gtk_widget_hide_on_delete),
+ GTK_SIGNAL_FUNC (sd_delete_event_cb),
NULL);
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
GTK_SIGNAL_FUNC(sd_key_pressed),
NULL);
gtk_signal_connect (GTK_OBJECT(window), "key_press_event",
GTK_SIGNAL_FUNC(sd_key_pressed),
guint del_by_old_session : 1;
};
guint del_by_old_session : 1;
};
-void selective_download(MainWindow *mainwin);
-void sd_reflect_prefs_pixmap_theme();
+void selective_download (MainWindow *mainwin);
+void sd_reflect_prefs_pixmap_theme (void);
#endif /* __SELECTIVE_DOWNLOAD_H__ */
#endif /* __SELECTIVE_DOWNLOAD_H__ */