"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "stock_buttons.h" between
jpilot-1.8.2.tar.gz and jpilot-2_0_1.tar.gz

About: J-Pilot is a desktop organizer application for Palm Pilot (PalmOS) devices. Ported to GTK3.

stock_buttons.h  (jpilot-1.8.2):stock_buttons.h  (jpilot-2_0_1)
skipping to change at line 23 skipping to change at line 23
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details. * GNU General Public License for more details.
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
******************************************************************************/ ******************************************************************************/
#include "config.h" #include "config.h"
extern GtkTooltips *glob_tooltips;
#ifndef ENABLE_STOCK_BUTTONS #ifndef ENABLE_STOCK_BUTTONS
/* old behavior */ /* old behavior */
# include "gdk/gdkkeysyms.h" # include "gdk/gdkkeysyms.h"
# define CREATE_BUTTON(widget, text, stock, tooltip, shortcut_key, shortcut_mas k, shortcut_text) \ # define CREATE_BUTTON(widget, text, stock, tooltip, shortcut_key, shortcut_mas k, shortcut_text) \
widget = gtk_button_new_with_label(text); \ widget = gtk_button_new_with_label(text); \
if (shortcut_key) \ if (shortcut_key) \
{ \ { \
char str[100]; \ char str[100]; \
gtk_widget_add_accelerator(widget, "clicked", accel_group, shortcut_key, s hortcut_mask, GTK_ACCEL_VISIBLE); \ gtk_widget_add_accelerator(widget, "clicked", accel_group, shortcut_key, s hortcut_mask, GTK_ACCEL_VISIBLE); \
sprintf(str, "%s %s", tooltip, shortcut_text); \ sprintf(str, "%s %s", tooltip, shortcut_text); \
set_tooltip(show_tooltips, glob_tooltips, widget, str, NULL); \ set_tooltip(show_tooltips, widget, str, NULL); \
} \ } \
else \ else \
set_tooltip(show_tooltips, glob_tooltips, widget, tooltip, NULL);\ set_tooltip(show_tooltips, widget, tooltip, NULL);\
gtk_box_pack_start(GTK_BOX(hbox_temp), widget, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox_temp), widget, TRUE, TRUE, 0);
#else #else
# define CREATE_BUTTON(widget, text, stock, tooltip, shortcut_key, shortcut_mas k, shortcut_text) \ # define CREATE_BUTTON(widget, text, stock, tooltip, shortcut_key, shortcut_mas k, shortcut_text) \
widget = gtk_button_new_from_stock(GTK_STOCK_ ## stock); \ widget = gtk_button_new_with_label(text); \
set_tooltip(show_tooltips, glob_tooltips, widget, tooltip, NULL); \ set_tooltip(show_tooltips, widget, tooltip); \
gtk_box_pack_start(GTK_BOX(hbox_temp), widget, TRUE, TRUE, 0); gtk_box_pack_start(GTK_BOX(hbox_temp), widget, TRUE, TRUE, 0);
#endif #endif
 End of changes. 4 change blocks. 
6 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)