~ubuntu-branches/debian/experimental/tickr/experimental

« back to all changes in this revision

Viewing changes to src/tickr/tickr_check4updates.c

  • Committer: Package Import Robot
  • Author(s): Emmanuel Thomas-Maurin
  • Date: 2012-07-15 22:53:02 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20120715225302-lqpwg1r6u10ve35d
Tags: 0.6.2-1
* Non standard feed rank support in OPML file.

* Add new optional 'feed re-ordering by user' feature.

* Add in libetm-0.4.4/str_mem.c/h: (int) str_is_num(const char *) and
  (int) str_is_blank(const char *).

* In feed picker win, 'enter' in (rank_/url_)entry launches 'add/upd'
  (GTK_RESPONSE_ADD) instead of 'ok (single)' (GTK_RESPONSE_SINGLE).

* Question at program start-up about new feed list format conversion:
  if version = 0.6.2 and feed list exists and feed list backup doesn't
  exist, create backup and convert to new format.

* In tickr_feedpicker.c: fix 'cancel' action.

* New func FList *f_list_clone(FList *) in tickr_list/c/h.

* Use GTK_RESPONSE_CANCEL_CLOSE only.

* In compute_surface_and_win(), remove:
    if (prm->icon_in_taskbar == 'n')
      gtk_window_deiconify(GTK_WINDOW(env->win));
  from update_win_dims() (why was it there?) to fix 'tickr keeps
  stealing focus' bug. Also replace params_have_been_changed() with
  win_params_have_been_changed(). (LP: #900759, #951452, #1017107)

* Fix (regression bug) segfault which occurs when opening text file
  and attempting to 'format_resource()' 'not-generated-if-resource-is-
  file' XML_DUMP_EXTRA file.

* Libetm version 0.4.3 -> 0.4.4 (see below.)

* Add get_appdata-dir_w() in libetm-0.4.4:win32_specific.c and
  get_appdata_dir_utf8() in tickr_resource.c to fix non-ascii (for
  instance cyrillic) user name in app data dir issue on win32.
  Also remove seemingly useless g_win32_locale_filename_from_utf8()
  stuff on win32.

* If 'item title' and 'item description' both unchecked in pref win,
  warn about 'pointless' setup and ask for confirmation before saving
  config.

* Add new TickerEnv member (int) mouse_x_in_drwa used to continuously
  tracks (guess what?) mouse x position. Now we have:
  - tooltips with descriptions when ticker displays only titles
  and
  - tooltips with titles when ticker displays only descriptions.

* Add fp_extra stuff in tickr_feedparser.c to get item titles /
  descriptions (in tooltips and others) when they are no displayed.

* Remove tmp files when exiting tickr_resource.c:format_resource().

* Add env->c_surf test in shift2left_callback(). (LP: #1011316)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
                        GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
31
31
                        NULL);
32
32
 
33
 
        close_but = gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE);
 
33
        close_but = gtk_dialog_add_button(GTK_DIALOG(dialog), GTK_STOCK_CLOSE, GTK_RESPONSE_CANCEL_CLOSE);
34
34
        close_but = close_but;  /* To get rid of one annoying compiler warning */
35
35
 
36
36
        set_tickr_icon_to_dialog(GTK_WINDOW(dialog));
61
61
        gtk_table_attach_defaults(GTK_TABLE(table), label[1], 0, 1, 1, 2);
62
62
 
63
63
        gtk_widget_show_all(dialog);
64
 
        while (gtk_dialog_run(GTK_DIALOG(dialog)) != GTK_RESPONSE_CLOSE);
 
64
        while (gtk_dialog_run(GTK_DIALOG(dialog)) != GTK_RESPONSE_CANCEL_CLOSE);
65
65
 
66
66
        gtk_widget_destroy(dialog);
67
67
        check_main_win_always_on_top();
84
84
                                CLOSE_SOCK(sock);
85
85
                                if (connect_with_url(&sock, CHECK4UPDATES_URL) == OK)
86
86
                                        status = get_http_response(sock, "GET", "", CHECK4UPDATES_URL, &new_url,\
87
 
                                                &response,&recv_status);
 
87
                                                &response, &recv_status);
88
88
                        }
89
 
                } if (status == OK) {*/
 
89
                }
 
90
                if (status == OK) {*/
90
91
                if (get_http_response(sock, "GET", "", CHECK4UPDATES_URL, &new_url, &response, &recv_status) == OK) {
91
92
                        remove_chunk_info(&response);
92
93
                        if (strncmp(response, CHECK4UPDATES_ID_STR, strlen(CHECK4UPDATES_ID_STR)) == 0) {